query
stringlengths 9
9.05k
| document
stringlengths 10
222k
| negatives
listlengths 19
20
| metadata
dict |
---|---|---|---|
Setter method for ssid, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/state/ssid (string)
|
def _set_ssid(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="ssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='string', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """ssid must be of a type compatible with string""",
'defined-type': "string",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="ssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='string', is_config=False)""",
})
self.__ssid = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_ssid(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGListType(\"name\",yc_ssid_openconfig_wifi_mac__ssids_ssid, yang_name=\"ssid\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name=\"ssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='list', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ssid must be of a type compatible with list\"\"\",\n 'defined-type': \"list\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGListType(\"name\",yc_ssid_openconfig_wifi_mac__ssids_ssid, yang_name=\"ssid\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name=\"ssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='list', is_config=True)\"\"\",\n })\n\n self.__ssid = t\n if hasattr(self, '_set'):\n self._set()",
"def wifi_ssid(self):\n return self._camera_data_structure[\"WifiSSID\"]",
"def wifi_ssid(self) -> str:\n self._logger.info(\"Retrieving WiFi SSID...\")\n return self._device_info().get(\"ssid\")",
"def create_ssid(self, ssid):\n self.get_logger().info(\"Create ssid '%s'\" % str(ssid))\n \n self._ssid = str(ssid)\n self._ssids.append(self._ssid)\n \n # Send commands to equipment\n self._send_cmd(\"dot11 ssid \" + self._ssid)\n self._send_cmd(\"guest-mode\")\n self._send_cmd(\"exit\")",
"def ssid(data):\n\ttry:\n\t\t# TODO: extend to look at every parameter?\n\t\tparam_type = ord(data[61])\n\t\tif param_type != 0:\n\t\t\treturn \"\"\n\t\tparam_len = ord(data[62])\n\t\treturn \"%s\" % data[63:63+param_len]\n\n\texcept:\n\t\treturn \"\"",
"def setEssid(wifi, essid):\n try:\n wifi.setEssid(essid)\n except OverflowError, (errno, strerror):\n print \"Error for wireless request \\\"Set ESSID\\\" (%X) :\" % \\\n (pythonwifi.flags.SIOCSIWESSID, )\n print \" argument too big (max %d)\" % \\\n (pythonwifi.flags.IW_ESSID_MAX_SIZE, )\n except Exception, detail:\n # Unexpected errors\n print detail",
"def bssid_to_ssid(bssid):\n\tif bssid in ssids:\n\t\treturn ssids[bssid]\n\treturn \"\"",
"def _set_wifi(self, ssid, key, do_reboot=True):\n key_encoded = \"\".join(\"%\" + hex(ord(c))[2:].rjust(2, \"0\") for c in key)\n data = {\"ssid\": ssid, \"key\": key_encoded, \"security\": \"mixed\"}\n self._set(\"/common/set_wifi_setting\", data)\n if do_reboot:\n res = self._do_reboot()\n logging.debug(\"Reboot ordered to activate wifi changes: %s\", res)",
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"def getCurrentEssidName(self) :\n inputFile = open(\"/etc/config/wireless\", 'r')\n rawData = inputFile.read()\n inputFile.close()\n\n lines = rawData.splitlines()\n for l in lines :\n if (\"option ssid\" in l) :\n name = l.split(\" option ssid \")\n essid = name[1].split(\"'\")\n return essid[1]",
"def toggleSSIDMode(self, allow):\n return self.request('toggleSSIDMode', {'mode': mode})",
"def extract_ssid(val):\n\n match = re.search(\"(?<=SSID_)\\w+\", val)\n\n if match:\n return match.group(0)\n else:\n return None",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def get_wlan_essid(iface_name):\n if IWCONFIG is None:\n if IW is None:\n logger.error('Unable to retrieve ESSID for wireless interface %s: '\n 'no supported wireless tool installed', iface_name)\n return ''\n return iw_get_ssid(iface_name)\n return iwconfig_get_ssid(iface_name)",
"def GetWifiFromState(state, spot_wrapper):\n wifi_msg = WiFiState()\n for comm_state in state.comms_states:\n if comm_state.HasField('wifi_state'):\n wifi_msg.current_mode = comm_state.wifi_state.current_mode\n wifi_msg.essid = comm_state.wifi_state.essid\n\n return wifi_msg",
"def print_ssid(interface, ssid):\n all_bssids = get_all_bssids(interface)\n ssid_list = []\n\n # Check complete list for matching ssids\n for bssid in all_bssids:\n bssid = json.loads(bssid)\n if bssid['ssid'] == ssid:\n ssid_list.append(bssid)\n\n for entry in ssid_list:\n print(entry)",
"def getSSIDMode(self):\n return self.request('getSSIDData')",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def validate_network(dut, ssid):\n current_network = dut.droid.wifiGetConnectionInfo()\n try:\n connected = wutils.validate_connection(dut) is not None\n except:\n connected = False\n if connected and current_network['SSID'] == ssid:\n return True\n else:\n return False",
"def set_wpa_key(self, wifi_int, key):\n return [\"ssid auth wpa %s wpa2-psk key %s\" % (wifi_int, key)]"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for rssi, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/state/rssi (int8)
|
def _set_rssi(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name="rssi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='int8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rssi must be of a type compatible with int8""",
'defined-type': "int8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name="rssi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='int8', is_config=False)""",
})
self.__rssi = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__neighbor_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_steering_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"steering_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__steering_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_steering_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"steering_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=True)\"\"\",\n })\n\n self.__steering_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def set_rssi(self, rssi_list):\n return _raw_util.raw_message_set_rssi(self, rssi_list)",
"def set_rssi(self, rssi_list):\n return _raw_util.raw_message_sptr_set_rssi(self, rssi_list)",
"def distance_in_rssi(rssi):\r\n d_rssi = float(sigmoid(rssi / 10.0 + 5))\r\n return d_rssi",
"def signal_rssi(self):\n return max(min(self.signal_quality / 2 - 100, -50), -100)",
"def rssi_values(self):\n return _raw_util.raw_message_sptr_rssi_values(self)",
"def avg_rssi(self, avg_rssi):\n\n self._avg_rssi = avg_rssi",
"def rssi_valid(self):\n return _raw_util.raw_message_sptr_rssi_valid(self)",
"def rssi_valid(self):\n return _raw_util.raw_message_rssi_valid(self)",
"def get_clientrssi():\n input = os.popen(\n '/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I')\n return int(''.join([x.split()[1] for x in input if 'agrCtlRSSI' in x]))",
"def _set_snr(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=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"snr must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__snr = t\n if hasattr(self, '_set'):\n self._set()",
"def check_radwin_rssi(item, params, info):\n warn, crit = params\n state = 3\n infotext = \"unknown output\"\n rssi = None\n\n try:\n logging.debug(\"radwin_rssi SNMP Output %s\", info)\n if not len(info):\n raise ValueError\n rssi = int(info[0][0])\n if rssi < crit:\n state = 2\n elif rssi > crit and rssi < warn:\n state = 1\n else:\n state = 0\n infotext = \"Device received signal strength indication is %s \" % rssi\n except ValueError:\n infotext = \"type mismatch value\"\n logging.critical(\"radwin_rssi %s\", infotext, exc_info=True)\n except:\n infotext = \"unknown value\"\n logging.critical(\"radwin_rssi %s\", infotext, exc_info=True)\n return (state, infotext, [(\"rssi\", rssi, warn, crit)])",
"def _set_neighbor_antenna(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=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_antenna must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_antenna = t\n if hasattr(self, '_set'):\n self._set()",
"def get_scan_rssi(dut, tracked_bssids, num_measurements=1):\n scan_rssi = collections.OrderedDict()\n for bssid in tracked_bssids:\n scan_rssi[bssid] = empty_rssi_result()\n for idx in range(num_measurements):\n scan_output = dut.adb.shell(SCAN)\n time.sleep(MED_SLEEP)\n scan_output = dut.adb.shell(SCAN_RESULTS)\n for bssid in tracked_bssids:\n bssid_result = re.search(bssid + '.*',\n scan_output,\n flags=re.IGNORECASE)\n if bssid_result:\n bssid_result = bssid_result.group(0).split('\\t')\n scan_rssi[bssid]['data'].append(int(bssid_result[2]))\n else:\n scan_rssi[bssid]['data'].append(RSSI_ERROR_VAL)\n # Compute mean RSSIs. Only average valid readings.\n # Output RSSI_ERROR_VAL if no readings found.\n for key, val in scan_rssi.items():\n filtered_rssi_values = [x for x in val['data'] if not math.isnan(x)]\n if filtered_rssi_values:\n scan_rssi[key]['mean'] = statistics.mean(filtered_rssi_values)\n if len(filtered_rssi_values) > 1:\n scan_rssi[key]['stdev'] = statistics.stdev(\n filtered_rssi_values)\n else:\n scan_rssi[key]['stdev'] = 0\n else:\n scan_rssi[key]['mean'] = RSSI_ERROR_VAL\n scan_rssi[key]['stdev'] = RSSI_ERROR_VAL\n return scan_rssi",
"def get_devices_from_inquiry_with_rssi(self):\n # save current filter\n old_filter = self._sock.getsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, 14)\n\n # perform a device inquiry on bluetooth device #0\n # The inquiry should last 8 * 1.28 = 10.24 seconds\n # before the inquiry is performed, bluez should flush its cache of\n # previously discovered devices\n flt = bluez.hci_filter_new()\n bluez.hci_filter_all_events(flt)\n bluez.hci_filter_set_ptype(flt, bluez.HCI_EVENT_PKT)\n self._sock.setsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, flt)\n\n duration = 4\n max_responses = 255\n cmd_pkt = struct.pack(\"BBBBB\", 0x33, 0x8b, 0x9e, duration, max_responses)\n bluez.hci_send_cmd(self._sock, bluez.OGF_LINK_CTL, bluez.OCF_INQUIRY, cmd_pkt)\n\n results = []\n\n done = False\n while not done:\n pkt = self.sock.recv(255)\n ptype, event, plen = struct.unpack(\"BBB\", pkt[:3])\n if event == bluez.EVT_INQUIRY_RESULT_WITH_RSSI:\n pkt = pkt[3:]\n nrsp = bluetooth.get_byte(pkt[0])\n for i in range(nrsp):\n addr = bluez.ba2str(pkt[1 + 6 * i:1 + 6 * i + 6])\n rssi = bluetooth.byte_to_signed_int(\n bluetooth.get_byte(pkt[1 + 13 * nrsp + i]))\n results.append((addr, rssi))\n print(\"[%s] RSSI: [%d]\" % (addr, rssi))\n elif event == bluez.EVT_INQUIRY_COMPLETE:\n done = True\n elif event == bluez.EVT_CMD_STATUS:\n status, ncmd, opcode = struct.unpack(\"BBH\", pkt[3:7])\n if status != 0:\n print(\"uh oh...\")\n self.printpacket(pkt[3:7])\n done = True\n elif event == bluez.EVT_INQUIRY_RESULT:\n pkt = pkt[3:]\n nrsp = bluetooth.get_byte(pkt[0])\n for i in range(nrsp):\n addr = bluez.ba2str(pkt[1 + 6 * i:1 + 6 * i + 6])\n results.append((addr, -1))\n print(\"[%s] (no RRSI)\" % addr)\n else:\n print(\"unrecognized packet type 0x%02x\" % ptype)\n print(\"event \", event)\n\n # restore old filter\n self._sock.setsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, old_filter)\n\n return results",
"async def test_rssi_sensor(hass: HomeAssistant) -> None:\n\n config_entry = MockConfigEntry(\n domain=lifx.DOMAIN,\n title=DEFAULT_ENTRY_TITLE,\n data={CONF_HOST: IP_ADDRESS},\n unique_id=SERIAL,\n )\n config_entry.add_to_hass(hass)\n bulb = _mocked_bulb()\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await async_setup_component(hass, lifx.DOMAIN, {lifx.DOMAIN: {}})\n await hass.async_block_till_done()\n\n entity_id = \"sensor.my_bulb_rssi\"\n entity_registry = er.async_get(hass)\n\n entry = entity_registry.entities.get(entity_id)\n assert entry\n assert entry.disabled\n assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION\n\n # Test enabling entity\n updated_entry = entity_registry.async_update_entity(\n entry.entity_id, **{\"disabled_by\": None}\n )\n\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await hass.config_entries.async_reload(config_entry.entry_id)\n await hass.async_block_till_done()\n\n assert updated_entry != entry\n assert updated_entry.disabled is False\n assert updated_entry.unit_of_measurement == SIGNAL_STRENGTH_DECIBELS_MILLIWATT\n\n async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=120))\n await hass.async_block_till_done()\n\n rssi = hass.states.get(entity_id)\n assert (\n rssi.attributes[ATTR_UNIT_OF_MEASUREMENT] == SIGNAL_STRENGTH_DECIBELS_MILLIWATT\n )\n assert rssi.attributes[ATTR_DEVICE_CLASS] == SensorDeviceClass.SIGNAL_STRENGTH\n assert rssi.attributes[\"state_class\"] == SensorStateClass.MEASUREMENT",
"def get_atten_for_target_rssi(target_rssi, attenuators, dut, ping_server):\n logging.info('Searching attenuation for RSSI = {}dB'.format(target_rssi))\n # Set attenuator to 0 dB\n for atten in attenuators:\n atten.set_atten(0, strict=False)\n # Start ping traffic\n dut_ip = dut.droid.connectivityGetIPv4Addresses('wlan0')[0]\n # Measure starting RSSI\n ping_future = get_ping_stats_nb(src_device=ping_server,\n dest_address=dut_ip,\n ping_duration=1.5,\n ping_interval=0.02,\n ping_size=64)\n current_rssi = get_connected_rssi(dut,\n num_measurements=4,\n polling_frequency=0.25,\n first_measurement_delay=0.5,\n disconnect_warning=1,\n ignore_samples=1)\n current_rssi = current_rssi['signal_poll_rssi']['mean']\n ping_future.result()\n target_atten = 0\n logging.debug(\"RSSI @ {0:.2f}dB attenuation = {1:.2f}\".format(\n target_atten, current_rssi))\n within_range = 0\n for idx in range(20):\n atten_delta = max(min(current_rssi - target_rssi, 20), -20)\n target_atten = int((target_atten + atten_delta) * 4) / 4\n if target_atten < 0:\n return 0\n if target_atten > attenuators[0].get_max_atten():\n return attenuators[0].get_max_atten()\n for atten in attenuators:\n atten.set_atten(target_atten, strict=False)\n ping_future = get_ping_stats_nb(src_device=ping_server,\n dest_address=dut_ip,\n ping_duration=1.5,\n ping_interval=0.02,\n ping_size=64)\n current_rssi = get_connected_rssi(dut,\n num_measurements=4,\n polling_frequency=0.25,\n first_measurement_delay=0.5,\n disconnect_warning=1,\n ignore_samples=1)\n current_rssi = current_rssi['signal_poll_rssi']['mean']\n ping_future.result()\n logging.info(\"RSSI @ {0:.2f}dB attenuation = {1:.2f}\".format(\n target_atten, current_rssi))\n if abs(current_rssi - target_rssi) < 1:\n if within_range:\n logging.info(\n 'Reached RSSI: {0:.2f}. Target RSSI: {1:.2f}.'\n 'Attenuation: {2:.2f}, Iterations = {3:.2f}'.format(\n current_rssi, target_rssi, target_atten, idx))\n return target_atten\n else:\n within_range = True\n else:\n within_range = False\n return target_atten"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for channel, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/state/channel (uint16)
|
def _set_channel(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="channel", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """channel must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="channel", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__channel = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_channel(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=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__channel = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_channel(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=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__channel = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_channel(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=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_channel = t\n if hasattr(self, '_set'):\n self._set()",
"def update_channel(self, channel):",
"def set_channel(self, chan, val):\n try:\n self.dmx_frame[chan] = val\n except OverflowError:\n raise ValueError(\"Channel value {} out of range. \"\n \"DMX uses 8bit unsigned values (0-255).\"\n .format(val))",
"def setRadioChannel(self,channel):\n \n data=self.EZSPtrans([0x9A, channel&xFF]);\n return ord(data[5]);",
"def selectchannel(self, c, channel):\n dev = self.selectedDevice(c)\n dev.onlyChannel = channel\n if channel > 0:\n dev.selectChannel(channel)\n return channel",
"def turn_channel(self, n):\n self.current = self.ch[n-1]\n return self.current_channel()",
"async def setchannel(self, ctx, channel=None):\n # get channel obj, depending on if it was mentioned or just the name was specified\n if len(ctx.message.channel_mentions) > 0:\n channel_obj = ctx.message.channel_mentions[0]\n elif channel is not None:\n channel_obj = discord.utils.get(\n ctx.guild.channels, name=channel.replace(\"#\", \"\"))\n if channel_obj is None:\n await ctx.send(f\"No channel named {channel}\")\n return\n else:\n await ctx.send(\"Missing channel parameter\")\n return\n\n bot_member = ctx.guild.get_member(self.bot.user.id)\n permissions = channel_obj.permissions_for(bot_member)\n if not permissions.send_messages or not permissions.embed_links:\n await ctx.send(\"Command failed, please make sure that the bot has both permissions for sending messages and using embeds in the specified channel!\")\n return\n\n async with self.bot.pool.acquire() as db:\n # add channel id for the guild to the database\n await db.execute(\"UPDATE Guilds SET RedditNotifChannel=$1 WHERE ID=$2\",\n channel_obj.id, ctx.guild.id)\n\n await ctx.send(\"Successfully set Reddit notifications to \" + channel_obj.mention)",
"def change_channel_route(remote_name, channel):\n remote = get_remote(remote_name)\n parse_int_from_url(channel)\n\n if len(channel) > 4:\n raise InvalidAPIUsageException(\n \"The channel parameter cannot be more than 4 digits. '{0}' was passed.\".format(channel))\n\n keys = []\n for number in channel:\n keys.append(\"KEY_\" + number)\n keys.append(\"KEY_OK\")\n\n irsend_rv = press_keys(remote, keys)\n logging.info(\"Changing channel to %s %s.\", channel, \"SUCCEEDED\" if not irsend_rv else \"FAILED\")\n return jsonify({'remote': remote_name, 'channel': channel, \"irsend_rv\": irsend_rv})",
"def update_channel_from_packet(self, packet):\r\n channel = IMC2Channel(packet)\r\n self[channel.name] = channel",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def SetChannelMapping(self, mapping):\n self._channel_map = mapping",
"def setChannel(self, chan: str, chanData: np.ndarray) -> None:\n self.data[chan] = chanData",
"def _set_num_channels(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=\"num-channels\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"num_channels must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"num-channels\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__num_channels = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_num_channels(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=\"num-channels\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"num_channels must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"num-channels\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__num_channels = t\n if hasattr(self, '_set'):\n self._set()",
"def _getChannelColor(self, seriesIndx, channelIndx):\n\n raise NotImplementedError()",
"async def setChannel(self, ctx, channel: discord.TextChannel = None):\n if channel:\n await self.config.guild(ctx.message.guild).get_attr(KEY_POST_CHANNEL).set(channel.id)\n self.logger.info(\n \"%s#%s (%s) set the post channel to %s\",\n ctx.message.author.name,\n ctx.message.author.discriminator,\n ctx.message.author.id,\n channel.name,\n )\n await ctx.send(\n \":white_check_mark: **GSC - Channel**: **{}** has been set \"\n \"as the update channel!\".format(channel.name)\n )\n else:\n await self.config.guild(ctx.message.guild).get_attr(KEY_POST_CHANNEL).set(None)\n await ctx.send(\":white_check_mark: **GSC - Channel**: GSC updates are now disabled.\")",
"def number(self, channel_number=(0, 0)):\n\n raise NotImplementedError",
"def channel(self) -> 'Channel': # stub\n return self._channel"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for primary_channel, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/state/primary_channel (uint16)
|
def _set_primary_channel(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="primary-channel", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """primary_channel must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="primary-channel", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__primary_channel = t
if hasattr(self, '_set'):
self._set()
|
[
"def setRadioChannel(self,channel):\n \n data=self.EZSPtrans([0x9A, channel&xFF]);\n return ord(data[5]);",
"def first_channel(self):\n self.current = self.ch[0]\n return self.current_channel()",
"def primary_vlan_id(self) -> int:\n return pulumi.get(self, \"primary_vlan_id\")",
"def get_active_channel(self):\n channel = translate_bits(self.connection.eDigitalIn(5, readD = 1),\n self.connection.eDigitalIn(6, readD = 1),\n self.connection.eDigitalIn(7, readD = 1))\n if not channel in xrange(6):\n raise LaserSwitchHWError(\"Laser Switch returned unphysical active channel number! It should be between 0 and 5 inclusive.\")\n return channel",
"def set_primary_controller(cls, nodes):\n sorted_nodes = sorted(\n nodes, key=lambda node: node['uid'])\n\n primary_controller = cls.filter_by_roles(\n sorted_nodes, ['primary-controller'])\n\n if not primary_controller:\n controllers = cls.filter_by_roles(\n sorted_nodes, ['controller'])\n if controllers:\n controllers[0]['role'] = 'primary-controller'",
"def set_primary_for_bonding_device(self, bond_port, slave_port, invert_verify=False):\n self.dut.send_expect(\"set bonding primary %d %d\" % (slave_port, bond_port), \"testpmd> \")\n out = self.get_info_from_bond_config(\"Primary: \\[\", \"\\d*\", bond_port)\n if not invert_verify:\n self.verify(str(slave_port) in out,\n \"Set bonding primary port failed\")\n else:\n self.verify(str(slave_port) not in out,\n \"Set bonding primary port successfully,should not success\")",
"def selectchannel(self, c, channel):\n dev = self.selectedDevice(c)\n dev.onlyChannel = channel\n if channel > 0:\n dev.selectChannel(channel)\n return channel",
"def set_active_channel(self, channel):\n if not channel in xrange(6):\n raise LaserSwitchLogicError(\"Cannot set selected Laser Switch channel to {0} - must be between 0 and 5 inclusive.\".format(channel))\n while(channel != self.get_selected_channel()):\n self.selected_channel_up()\n self.execute()",
"def _get_physical_channel(self):\n return self.__physical_channel",
"def _set_server_status_primary(server, update_only):\n raise _errors.ServerError(\n \"If you want to make a server (%s) primary, please, use the \"\n \"group.promote function.\" % (server.uuid, )\n )",
"def _set_channel(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=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__channel = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_channel(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=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), restriction_dict={'range': ['1..165']}), is_leaf=True, yang_name=\"channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__channel = t\n if hasattr(self, '_set'):\n self._set()",
"def set_active_channel(self, chan):\n raise NotImplementedError",
"def set_ads_channel(self, ads_num, channel, positive=True):\n\t\tif positive:\n\t\t\treturn self.config_ads(ads_num, 3, channel)\n\t\telse:\n\t\t\treturn self.config_ads(ads_num, 4, channel)",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def CvlanFirstId(self):\n return self._get_attribute('cvlanFirstId')",
"def next_channel(self):\n self.current = self.ch[(self.ch.index(self.current) + 1) % self.length]\n return self.current_channel()",
"def _set_server_mode_primary(server, mode):\n allowed_mode = \\\n (_server.MySQLServer.WRITE_ONLY, _server.MySQLServer.READ_WRITE)\n _do_set_server_mode(server, mode, allowed_mode)",
"def ammo_type_primary_icon(self, ammo_type_primary_icon):\n\n self._ammo_type_primary_icon = ammo_type_primary_icon",
"def ensure_correct_channel(self):\n active_channel = self._instrument._parent.active_channel.get_latest()\n if active_channel != self.channel_id:\n for attempt in range(10):\n self._instrument._parent.active_channel(self.channel_id)\n sleep(0.01)\n if self._instrument._parent.active_channel() == self.channel_id:\n break\n else:\n warn(f\"Could not set the 81180 active channel to {self.channel_id}\")"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for bssid, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/bssid (leafref)
|
def _set_bssid(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 = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """bssid must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)""",
})
self.__bssid = t
if hasattr(self, '_set'):
self._set()
|
[
"def bssid_to_ssid(bssid):\n\tif bssid in ssids:\n\t\treturn ssids[bssid]\n\treturn \"\"",
"def wrapper(self, ap_bssid):\n\n def callback(pkt):\n\n \"\"\"\n performs for every packet the sniffer finds.\n analyzes the packet to find new stations connected to the access point. \n\n Parameters\n ----------\n pkt : packet object\n packet for analysis\n \"\"\"\n\n if pkt.haslayer(Dot11):\n addr1, addr2, addr3 = pkt.addr1, pkt.addr2, pkt.addr3\n # Sanitze and upper all inputs\n sanitizedAddr1 = addr1.upper() if addr1 is not None else ''\n sanitizedAddr2 = addr2.upper() if addr2 is not None else ''\n sanitizedAddr3 = addr3.upper() if addr3 is not None else ''\n\n addresses = (sanitizedAddr1, sanitizedAddr3)\n remove_values = (\"FF:FF:FF:FF:FF:FF\",\"\")\n \n if ap_bssid in addresses and ap_bssid == sanitizedAddr3 and not any(t in addresses for t in remove_values):\n if sanitizedAddr2 not in self.stations:\n self.stations[sanitizedAddr2] = sanitizedAddr3\n print(spacing.format(sanitizedAddr2, sanitizedAddr3))\n else:\n pass\n return callback",
"def test_he_ap_mbssid_open(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n for idx in range(0, 4):\n mbssid_write_bss_params(f, ifname, idx)\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def _set_neighbor_antenna(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=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_antenna must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_antenna = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mac(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"mac\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mac must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=unicode, is_leaf=True, yang_name=\"mac\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__mac = t\n if hasattr(self, '_set'):\n self._set()",
"def test_prefer_ht20_during_roam(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"0\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].scan(freq=2412)\n dev[0].wait_connected()\n\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")",
"def test_he_ap_mbssid_mixed_security2(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3, sae_params)\n mbssid_write_bss_params(f, ifname, 4)\n mbssid_write_bss_params(f, ifname, 5, psk_params)\n mbssid_write_bss_params(f, ifname, 6, sae_params)\n mbssid_write_bss_params(f, ifname, 7, owe_params)\n\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def _set_neighbor_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__neighbor_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def test_prefer_ht40(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\",\n \"ht_capab\": \"[HT40+]\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")\n\n est = dev[0].get_bss(bssid)['est_throughput']\n if est != \"65000\":\n raise Exception(\"Unexpected BSS0 est_throughput: \" + est)\n\n est = dev[0].get_bss(bssid2)['est_throughput']\n if est != \"135000\":\n raise Exception(\"Unexpected BSS1 est_throughput: \" + est)",
"def test_prefer_ht20(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"0\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")\n\n est = dev[0].get_bss(bssid)['est_throughput']\n if est != \"54000\":\n raise Exception(\"Unexpected BSS0 est_throughput: \" + est)\n\n est = dev[0].get_bss(bssid2)['est_throughput']\n if est != \"65000\":\n raise Exception(\"Unexpected BSS1 est_throughput: \" + est)",
"def test_ap_beacon_rate_vht(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000200000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'vht:0')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def test_he_ap_mbssid_mixed_security1(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0, sae_params)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3)\n mbssid_write_bss_params(f, ifname, 4, psk_params)\n mbssid_write_bss_params(f, ifname, 5, sae_params)\n mbssid_write_bss_params(f, ifname, 6, owe_params)\n mbssid_write_bss_params(f, ifname, 7)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_he_ap_mbssid_same_security(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n for idx in range(0, 2):\n mbssid_write_bss_params(f, ifname, idx, sae_params)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def bref(self):\n return BREF(self.data[8:24])",
"def evpn_afi_peer_activate(self, **kwargs):\n peer_ip = kwargs.pop('peer_ip')\n rbridge_id = kwargs.pop('rbridge_id', '1')\n callback = kwargs.pop('callback', self._callback)\n ip_addr = ip_interface(unicode(peer_ip))\n afi = 'ipv4' if ip_addr.version == 4 else 'ipv6'\n feature = '_address_family_l2vpn_evpn_neighbor_evpn_neighbor' \\\n '_{afi}'.format(afi=afi)\n\n if kwargs.pop('delete', False):\n args = dict(activate=False)\n config = util.get_bgp_api(\n rbridge_id=rbridge_id,\n feature=feature,\n evpn_n_addr=peer_ip,\n op='_update',\n args=args,\n os=self.os)\n return callback(config)\n if kwargs.pop('get', False):\n config = util.get_bgp_api(\n rbridge_id=rbridge_id,\n feature=feature,\n evpn_n_addr=peer_ip,\n resource_depth=2,\n op='_get',\n os=self.os)\n ret = callback(config, handler='get_config')\n bgp = Util(ret.data)\n ret = bgp.find(bgp.root, './/activate')\n return ret\n config = util.get_bgp_api(\n rbridge_id=rbridge_id,\n feature=feature,\n evpn_n_addr=peer_ip,\n op='_create',\n os=self.os)\n ret = callback(config)\n args = dict(activate=True)\n config = util.get_bgp_api(\n rbridge_id=rbridge_id,\n feature=feature,\n evpn_n_addr=peer_ip,\n op='_update',\n args=args,\n os=self.os)\n return callback(config)",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def test_hapd_ctrl_set_deny_mac_file(dev, apdev):\n ssid = \"hapd-ctrl\"\n params = { \"ssid\": ssid }\n hapd = hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n dev[1].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n if \"OK\" not in hapd.request(\"SET deny_mac_file hostapd.macaddr\"):\n raise Exception(\"Unexpected SET failure\")\n dev[0].wait_disconnected(timeout=15)\n ev = dev[1].wait_event([\"CTRL-EVENT-DISCONNECTED\"], 1)\n if ev is not None:\n raise Exception(\"Unexpected disconnection\")",
"def _set_neighbor_channel(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=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_channel = t\n if hasattr(self, '_set'):\n self._set()",
"def test_ap_beacon_rate_ht(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:0')\n hapd.enable()\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"2412\")"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor/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_radios_radio_neighbors_neighbor_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_radios_radio_neighbors_neighbor_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_neighbor_state(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={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_state must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ip:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__neighbor_state = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_state(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={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/tunnel', defining_module='openconfig-if-tunnel', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_state must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-tunnel:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/tunnel', defining_module='openconfig-if-tunnel', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__neighbor_state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def accept_neighbor(self, neighbor_ex: Example, state: Any) -> Any:\n del neighbor_ex\n return state",
"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_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_vlan__vlans_vlan_members_member_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_vlan__vlans_vlan_members_member_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for neighbor, mapped from YANG variable /access_points/access_point/radios/radio/neighbors/neighbor (list)
|
def _set_neighbor(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("bssid",yc_neighbor_openconfig_access_points__access_points_access_point_radios_radio_neighbors_neighbor, yang_name="neighbor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='bssid', extensions=None), is_container='list', yang_name="neighbor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """neighbor must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("bssid",yc_neighbor_openconfig_access_points__access_points_access_point_radios_radio_neighbors_neighbor, yang_name="neighbor", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='bssid', extensions=None), is_container='list', yang_name="neighbor", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)""",
})
self.__neighbor = t
if hasattr(self, '_set'):
self._set()
|
[
"def __init__(self, neighbor: List[NeighborsSchemaNeighbor]=None): # noqa: E501\n self.swagger_types = {\n 'neighbor': List[NeighborsSchemaNeighbor]\n }\n\n self.attribute_map = {\n 'neighbor': 'neighbor'\n }\n\n self._neighbor = neighbor",
"def neighbor(self, neighbor: List[NeighborsSchemaNeighbor]):\n\n self._neighbor = neighbor",
"def get_neighbors(self, neighbor_type_real: str):\n others = []\n for other in self.neighbors:\n if other.type.real == neighbor_type_real:\n others.append(other)\n return others",
"def get_neighbors(self):\n return [neighbor for neighbor in self.neighbors]",
"def _build_neighbor_list(\n self,\n Z: torch.Tensor,\n positions: torch.Tensor,\n cell: torch.Tensor,\n pbc: torch.Tensor,\n cutoff: float,\n ):\n raise NotImplementedError",
"def _set_neighbor_antenna(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=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_antenna must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_antenna = t\n if hasattr(self, '_set'):\n self._set()",
"def get_cell_neighbor_data_list(self, cell):\n if not self.neighbor_tracker_plugin:\n raise AttributeError('Could not find NeighborTrackerPlugin')\n\n return CellNeighborListFlex(self.neighbor_tracker_plugin, cell)",
"def add_neighbors(self):\n\n self.neighbors = []\n\n if self.row > 0 and not grid[self.row - 1][self.col].is_wall():\n self.neighbors.append(grid[self.row - 1][self.col])\n\n if self.row < rows - 1 and not grid[self.row + 1][self.col].is_wall():\n self.neighbors.append(grid[self.row + 1][self.col])\n\n if self.col > 0 and not grid[self.row][self.col - 1].is_wall():\n self.neighbors.append(grid[self.row][self.col - 1])\n\n if self.col < cols - 1 and not grid[self.row][self.col + 1].is_wall():\n self.neighbors.append(grid[self.row][self.col + 1])\n\n return self.neighbors",
"def _set_neighbor_set(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_set must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__neighbor_set = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_set(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_set must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=True)\"\"\",\n })\n\n self.__neighbor_set = t\n if hasattr(self, '_set'):\n self._set()",
"def test_list_address_neighbors(self):\n test_service.list_address_neighbors(self)\n\n query_string = [('direction', 'out'),\n ('',''),\n ('',''),\n ('','')]\n headers = { \n 'Accept': 'application/json',\n }\n response = self.client.open(\n '/{currency}/addresses/{address}/neighbors'.format(currency='btc', address='1Archive1n2C579dMsAu3iC6tWzuQJz8dN'),\n method='GET',\n headers=headers,\n query_string=query_string)\n self.assert200(response,\n 'Response body is : ' + response.data.decode('utf-8'))",
"def add_neighbor(self, v):\n if self.neighbors is None:\n self.neighbors = []\n if v not in self.neighbors:\n self.neighbors.append(v)\n self.neighbors.sort()",
"def _set_neighbor_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__neighbor_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def neighborlist(self):\n from pdbfiles.smallThings import neighborList\n #find native contact map\n pdbf=self.reactant['unsolvated']['pdb']\n neig,dist,xyz=neighborList(open(pdbf),co=6.0)\n self.contmap={'all':{'co':6.0,'map':neig,'distances':dist}}\n return True",
"def _set_neighbor_channel(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=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_channel must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-channel\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_channel = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_state(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={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_state must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ip:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__neighbor_state = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_state(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={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/tunnel', defining_module='openconfig-if-tunnel', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_state must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-tunnel:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/tunnel', defining_module='openconfig-if-tunnel', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__neighbor_state = t\n if hasattr(self, '_set'):\n self._set()",
"def get_neighbors(self):\n\n # create an empty list for neighbors.\n neighbors = []\n\n # go through all of the rows in the map array\n for j in range(0, self.height):\n \n row = []\n \n # go through the items in the row, and add the \n # amount of neighbors that item has to the \n # array.\n for i in range(0, self.width):\n row += [self.get_point_neighbor(j, i)]\n\n # add the row into the neighbors array.\n neighbors += [row]\n\n # check the map, and return the neighbors array.\n self.assert_array_size('get_neighbors', self.neighbors)\n return neighbors",
"def test_find_neighbour_cells(self):\n map1 = \"\"\"\\\n OOOO\n OSDO\n OOOO\"\"\"\n m = Ma.Map(map1)\n a = m.find_neighbor_cells((2, 3))\n b = m.find_neighbor_cells((1, 1))\n assert isinstance(a, list)\n assert b == [(2, 1), (0, 1), (1, 2), (1, 0)]\n assert a == [(3, 3), (1, 3), (2, 4), (2, 2)]",
"def do_neighbors(self,args):\n\t\tprint(self.location.neighbors)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for operating_frequency, mapped from YANG variable /access_points/access_point/radios/radio/operating_frequency (leafref)
|
def _set_operating_frequency(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 = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="operating-frequency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """operating_frequency must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="operating-frequency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=True)""",
})
self.__operating_frequency = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_operating_frequency(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'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"operating_frequency must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__operating_frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_operating_frequency(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'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"operating_frequency must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__operating_frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_frequency(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=\"frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"frequency must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def set_reference_frequency(self, frequency):\n if ((self.get_reference_mode() == 'int') & (self.get_mode_2f() == 0)):\n # Bug fixed by Nick Schade, 2016-01-07\n self.write(\"FREQ %.2f\"%frequency)\n else:\n print(\"Reference mode is external or 2f! Set to internal, 1f first.\")",
"def set_reference_frequency(self, frequency):\n if (self.get_reference_mode() == 'int'):\n self.write(\"FREQ %.2f\"%frequency)\n else:\n print(\"Warning: Reference mode is external. Set to internal first.\")",
"def _set_frequency(self, frequency: float) -> None:\n frequency = int(round(frequency))\n\n self._parent._lib.set_frequency(self._parent._device_handle, self._axis, frequency)",
"def set_frequency(self, frequency):\r\n self.obs.centerFreqHz = float(frequency)\r\n self.ref.centerFreqHz = float(frequency)\r\n self.ave.centerFreqHz = float(frequency)\r\n self.hot.centerFreqHz = float(frequency)\r\n self.cold.centerFreqHz = float(frequency)\r\n deltaNu = self.obs.bandwidthHz/float(self.vlen)\r\n n0 = self.obs.centerFreqHz - (self.obs.bandwidthHz/2.)\r\n nu = n0\r\n print(\"Setting Frequency: %10.0f Hz\" % (self.obs.centerFreqHz))\r\n nx = len( self.obs.xdata)\r\n if nx != self.vlen:\r\n self.update_len(self.obs)\r\n for iii in range(self.vlen):\r\n self.obs.xdata[iii] = nu\r\n nu = nu + deltaNu",
"def set_freq(self, f_obs):\n return _radio_astro_swig.detect_set_freq(self, f_obs)",
"def set_frequency(self):\n if self.laser_status:\n self._fiber_shooting_logic.set_frequency(self._mw.frequency_spinBox.value())\n else:\n pass\n return",
"def _get_frequency(self) -> float:\n return self._parent._lib.get_frequency(self._parent._device_handle, self._axis)",
"def get_frequency(self) -> float:\n return self.fpga_frequency",
"def set_frequency(self, f, force=False):\n if not force and self.get_frequency() == int(f):\n return\n self._write('%s*F' % str(f).zfill(6))",
"def setFrequency(self, frequency: int) -> None:\n self.frequency = frequency",
"def update_frequency(self, update_frequency):\n\n self._update_frequency = update_frequency",
"def _set_operating_system(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=\"operating-system\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='string', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"operating_system must be of a type compatible with string\"\"\",\n 'defined-type': \"string\",\n 'generated-type': \"\"\"YANGDynClass(base=unicode, is_leaf=True, yang_name=\"operating-system\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='string', is_config=False)\"\"\",\n })\n\n self.__operating_system = t\n if hasattr(self, '_set'):\n self._set()",
"def ai_freq(self, frequency=\"6\"):\n aifreq = ElementTree.SubElement(self.root, \"aiFrequency\")\n aifreq.text = str(frequency)",
"def set_frequency(self, frequency):\n #Calculate VCO output divider:\n div = 0\n for n in range(0,7):\n VCO = 2**n * frequency\n if VCO >= 2.2e9 and VCO <= 4.4e9:\n div = n\n break\n\n #Prescaler: 0 (4/5) if < 3.6 GHz, 1 (8/9) if >= 3.6 GHz\n #Nmin changes with prescaler:\n if frequency >= 3.6e9:\n prescaler = 1\n Nmin = 75\n else:\n prescaler = 0\n Nmin = 23\n\n #Get R from stepsize and reference frequency\n R = int(self.ref_frequency / self.stepsize)\n\n if frequency % self.stepsize != 0.0:\n raise ValueError('Frequency must be integer multiple of stepsize: {}'.format(self.stepsize))\n #Calculate INT value\n INT = int(frequency/self.stepsize)\n if INT < Nmin or INT > 65535:\n fmin = max(Nmin * self.stepsize, 40e6)\n fmax = min(self.stepsize*65535, 4.4e9)\n raise ValueError('Frequency {} not possible with stepsize {}. Allowed frequencies: {}<f<{}'.format(frequency, self.stepsize, fmin, fmax))\n\n #Check that band select is smaller than 125 kHz, otherwise divide\n #until it is\n fpfd = self.ref_frequency/R\n band_sel = 1\n if fpfd > 125e3:\n band_sel = int(math.ceil(fpfd/125e3))\n\n # In REG4: Set calculated divider and band select, enable RF out at max power\n self.registers[4] = (div<<20) | (band_sel<<12) | (1<<5) | (3<<3) | 4\n # In REG2: Set calculated R value, enable double buffer, LDF=INT-N, LDP=6ns, PD_POL = Positive\n self.registers[2] = (R<<14) | (1<<13) | (7<<9) | (1<<8) | (1<<7) | (1<<6) | 2\n # In REG1: Set prescaler value\n self.registers[1] = (prescaler <<27) | (2<<3) | 1\n # In REG0: Set calculated INT value\n self.registers[0] = (INT<<15)\n\n self.write_registers()",
"def set_freq(self, f_obs):\n return _radio_astro_swig.detect_sptr_set_freq(self, f_obs)",
"def setFreq(wifi, freq):\n try:\n wifi.setFrequency(freq)\n except Exception, detail:\n # Unexpected errors\n print type(detail), detail",
"def set_operating_mode(self, channel, mode):\n self.logger.debug('Set operating mode: {}'.format(mode))\n self.query(\"L{}I{}\".format(channel, self.MODES[mode]))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for config, mapped from YANG variable /access_points/access_point/radios/radio/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_radios_radio_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_access_points__access_points_access_point_radios_radio_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_rstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"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_interface_ref_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_interface_ref_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_elements__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_elements__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_interfaces_interface_output_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_interfaces_interface_output_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/radios/radio/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_radios_radio_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_radios_radio_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for neighbors, mapped from YANG variable /access_points/access_point/radios/radio/neighbors (container)
|
def _set_neighbors(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_neighbors_openconfig_access_points__access_points_access_point_radios_radio_neighbors, is_container='container', yang_name="neighbors", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """neighbors must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_neighbors_openconfig_access_points__access_points_access_point_radios_radio_neighbors, is_container='container', yang_name="neighbors", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__neighbors = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11k_neighbors(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k_neighbors must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__dot11k_neighbors = t\n if hasattr(self, '_set'):\n self._set()",
"def neighbors(adata, n_neighbors=15, key_added=None, **kwargs):\n if not isinstance(n_neighbors, (list, tuple)):\n sc.pp.neighbors(adata, n_neighbors=n_neighbors, key_added=key_added, **kwargs)\n else:\n for i, n_nb in enumerate(n_neighbors):\n if key_added is None:\n graph_key = f\"k{n_nb}\"\n elif not isinstance(key_added, (list, tuple)):\n graph_key = f\"{key_added}_k{n_nb}\"\n elif len(key_added) == len(n_neighbors):\n graph_key = key_added[i]\n else:\n raise ValueError(\n \"`key_added` can only be None, a scalar, or an \"\n \"iterable of the same length as `n_neighbors`.\"\n )\n neighbors(\n adata,\n n_neighbors=n_nb,\n key_added=graph_key,\n **kwargs,\n )\n return adata",
"def _set_neighbor_set(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_set must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__neighbor_set = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_set(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_set must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=ReferenceType(referenced_path='../../../../../../../../defined-sets/neighbor-sets/neighbor-set/name', caller=self._path() + ['neighbor-set'], path_helper=self._path_helper, require_instance=True), is_leaf=True, yang_name=\"neighbor-set\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='leafref', is_config=True)\"\"\",\n })\n\n self.__neighbor_set = t\n if hasattr(self, '_set'):\n self._set()",
"def add_neighbors(self):\n\n self.neighbors = []\n\n if self.row > 0 and not grid[self.row - 1][self.col].is_wall():\n self.neighbors.append(grid[self.row - 1][self.col])\n\n if self.row < rows - 1 and not grid[self.row + 1][self.col].is_wall():\n self.neighbors.append(grid[self.row + 1][self.col])\n\n if self.col > 0 and not grid[self.row][self.col - 1].is_wall():\n self.neighbors.append(grid[self.row][self.col - 1])\n\n if self.col < cols - 1 and not grid[self.row][self.col + 1].is_wall():\n self.neighbors.append(grid[self.row][self.col + 1])\n\n return self.neighbors",
"def get_neighbors(self, neighbor_type_real: str):\n others = []\n for other in self.neighbors:\n if other.type.real == neighbor_type_real:\n others.append(other)\n return others",
"def neighbors(self, i):\n for suffix in [\"list\", \"alist\", \"awk\"]:\n attr = self.__getattribute__(\"neighbors_\" + suffix)\n if attr is not None:\n return attr[i]\n else:\n raise AttributeError(\"Hey, graph {} oddly doesn't have any allocated adjacency\"\n \" structure. This may be an internal error, but you can\"\n \" check the parameter 'keep_neighbors_as' at the\"\n \" initialization of this class.\".format(self))",
"def do_neighbors(self,args):\n\t\tprint(self.location.neighbors)",
"def neighbors(self):\n hood = (self.x, self.y, self.neighborhood_radius) # neighborhood\n n = collide_single(hood, self.others)\n return n",
"def get_neighbors(self):\n return [neighbor for neighbor in self.neighbors]",
"def __init__(self, neighbor: List[NeighborsSchemaNeighbor]=None): # noqa: E501\n self.swagger_types = {\n 'neighbor': List[NeighborsSchemaNeighbor]\n }\n\n self.attribute_map = {\n 'neighbor': 'neighbor'\n }\n\n self._neighbor = neighbor",
"def neighbors(digraph, node, label=None):\n assert set(digraph.neighbors('Mary')) == {'John', 'Peter'}",
"def neighbors(self, node):\n return self.neighb[node]",
"def num_neighbors(self, index):\n return len(self.neighbors(index))",
"def add_neighbors(self, node, neighbors, ignore_unknown=True):\n tr_n = self._transform_node(node)\n nodes = self._nodes\n nbad = tr_n not in nodes\n if nbad:\n if ignore_unknown:\n return\n else:\n raise KeyError(node)\n tr_neighbors = self._transform_nodes(neighbors)\n known_neighbors = tr_neighbors & nodes\n if not ignore_unknown and len(known_neighbors) != len(tr_neighbors):\n raise KeyError(tr_neighbors - known_neighbors)\n nbs = self._neighbors.get(tr_n)\n if nbs is None:\n self._neighbors[tr_n] = known_neighbors\n else:\n nbs |= known_neighbors",
"def get_neighbours(self):\n return self.__neighbours",
"def get_neighbors(self):\n\n # create an empty list for neighbors.\n neighbors = []\n\n # go through all of the rows in the map array\n for j in range(0, self.height):\n \n row = []\n \n # go through the items in the row, and add the \n # amount of neighbors that item has to the \n # array.\n for i in range(0, self.width):\n row += [self.get_point_neighbor(j, i)]\n\n # add the row into the neighbors array.\n neighbors += [row]\n\n # check the map, and return the neighbors array.\n self.assert_array_size('get_neighbors', self.neighbors)\n return neighbors",
"def get_neighbors(self, **kwargs):\r\n click.echo('[%s_OSINT_get_neighbors] Get neighbors via Match starting...' % (get_datetime()))\r\n sql = '''\r\n MATCH\r\n {class:V, where: (key = '%s')}\r\n .bothE(){as:o2n}\r\n .bothV(){class:V, as:n}\r\n RETURN \r\n o2n.@class as EDGE_TYPE, o2n.out.key as EDGE_SOURCE , o2n.in.key as EDGE_TARGET,\r\n n.key as NODE_KEY, n.title as NODE_NAME, n.@class as NODE_TYPE, n.description as NODE_ATTR_ID\r\n ''' % (kwargs[\"nodekey\"])\r\n # Start a response object with data array and node_keys including the queried so it is not included\r\n response = {\"data\": [], \"node_keys\": [kwargs[\"nodekey\"]]}\r\n for r in self.client.command(sql):\r\n r = r.oRecordData\r\n if r[\"EDGE_TARGET\"] == kwargs[\"nodekey\"]:\r\n r[\"EDGE_DIRECTION\"] = \"IN\"\r\n else:\r\n r[\"EDGE_DIRECTION\"] = \"OUT\"\r\n if r[\"NODE_KEY\"] not in response[\"node_keys\"]:\r\n response[\"data\"].append(r)\r\n response[\"node_keys\"].append(r[\"NODE_KEY\"])\r\n response[\"message\"] = \"Get neighbors for %s resulted in %d nodes\" % (kwargs[\"nodekey\"], len(response[\"data\"]))\r\n click.echo('[%s_OSINT_get_neighbors] Get neighbors via Match complete.' % (get_datetime()))\r\n return response",
"def bgp_neighbors(self, data, fobj, validate=True):\n\n groups = dict()\n # collate by group\n for each in data[\"neighbors\"]:\n if validate:\n validate(BgpNeighbor(), each)\n groups.setdefault(each[\"peer_group\"], []).append(each)\n\n groups = dict(peer_groups=groups)\n\n filename = \"bgp/neighbors.j2\"\n return self._render(filename, groups, fobj)",
"def number_of_neighbors(self):\n return len(self.indices_of_atoms_connecting)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for radio, mapped from YANG variable /access_points/access_point/radios/radio (list)
|
def _get_radio(self):
return self.__radio
|
[
"def _get_radio_id(self):\n return self.__radio_id",
"def getRadii(self):\n\n return self._radii.copy()",
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"def getInputRadioConnector(self, radiobutton):\n if radiobutton.layoutDirection() == OUTPUT_LAYOUT:\n raise Exception(\"radiobutton is not an input radiobutton.\\\n Output radiobuttons can have multiple connectors.\")\n for connector in self.connectorList:\n if connector.itemB == self:\n if self.filterframe.childAt(connector.local_posB.toPoint()) == radiobutton:\n return connector\n# if self.widget().childAt(connector.local_posB.toPoint()) == radiobutton: #For some reason the radiobuttons have the same memory addresses, even though they belong to different filters. \n# return connector\n return None",
"def radii(self):\n return self._data.get(b'keyOriginRRectRadii')",
"def radii(self):\n return array([self.graph[u][v]['conductivity']\n for u, v in self.edgeset])",
"def select_radio(name, tab=None, timeout=default_timeout):\n if type(name) is not pywinauto.application.WindowSpecification:\n control = get_control(name, tab, timeout=timeout)\n else: # We also accept a pywinauto object, but this is for the framework, not scripts\n control = name\n if control is None:\n return False\n rect = control.get_properties()['rectangle']\n if not is_inbounds((rect.left+6, rect.mid_point().y), timeout=timeout):\n log.warning(\"Radio button not visible\")\n return False\n control.click()\n return True",
"def create_radio_button(self, *,\n name: typing.Optional[UIIdentifier] = None,\n text: typing.Optional[UILabel] = None,\n icon: typing.Optional[UIIdentifier] = None,\n value: typing.Any = None,\n group_value: typing.Optional[UIIdentifier] = None,\n **kwargs: typing.Any) -> UIDescriptionResult:\n d: UIDescriptionResult = {\"type\": \"radio_button\"}\n if name is not None:\n d[\"name\"] = name\n if text is not None:\n d[\"text\"] = text\n if icon is not None:\n d[\"icon\"] = icon\n if value is not None:\n d[\"value\"] = value\n if group_value is not None:\n d[\"group_value\"] = group_value\n self.__process_common_properties(d, **kwargs)\n return d",
"def add_radiobutton( self, **kw ) :\n return self._add_widget( 'radiobutton', None, **kw )",
"def _check_radio_fields(self, obj):\n if not isinstance(obj.radio_fields, dict):\n return must_be(\n \"a dictionary\", option=\"radio_fields\", obj=obj, id=\"admin.E021\"\n )\n else:\n return list(\n chain.from_iterable(\n self._check_radio_fields_key(obj, field_name, \"radio_fields\")\n + self._check_radio_fields_value(\n obj, val, 'radio_fields[\"%s\"]' % field_name\n )\n for field_name, val in obj.radio_fields.items()\n )\n )",
"def radio_version(self) -> Version | None:\n return self._radio_version",
"def radio_buttons(self):\n\n self.var = IntVar()\n self.__difficulties_list = []\n\n i = 0\n for mode in self.__info.get_list(\"mode\"):\n\n rb = Radiobutton(self.__group_difficulties,\n text=\"{:s}\\n{:d} mines\\n{:d}x{:d} grid\"\n .format(mode.capitalize(),\n self.__info.get_mode(mode)[\"mines\"],\n self.__info.get_mode(mode)[\"grid\"][0],\n self.__info.get_mode(mode)[\"grid\"][1]),\n variable=self.var,\n value=i,\n command=self.configure_radio)\n\n # Selects current setting.\n if mode in self.__settings[\"mode\"]:\n rb.select()\n else:\n rb.deselect()\n\n i += 1\n rb.pack(side=TOP, anchor=\"w\")\n\n self.__difficulties_list.append(rb)",
"def get(self):\n radio_name = request.args.get('radio_name')\n start, end = validate_date_range()\n return tracks_import.TracksImport.get_imports_per_date_per_radio_num(start, end, radio_name)",
"def set_radio_url(self, radio):\n\n radio_url_dict = read_dict_file(RADIO_URL_FILE)\n\n if radio.lower() in radio_url_dict.keys():\n logger.debug('The radio url is changed')\n self.radio = radio.lower()\n self.url = radio_url_dict[radio.lower()]\n else:\n logger.warning('The radio doesn\\'t exist in the dictionary')",
"def getDeviceWirelessRadioSettings(self, serial: str):\n\n metadata = {\n 'tags': ['wireless', 'configure', 'radio', 'settings'],\n 'operation': 'getDeviceWirelessRadioSettings'\n }\n resource = f'/devices/{serial}/wireless/radio/settings'\n\n return self._session.get(metadata, resource)",
"def get(self):\n limit = request.args.get('limit')\n radio_name = request.args.get('radio_name')\n start, end = validate_date_range()\n return tracks_import.TracksImport.get_imports_per_date_per_radio(start, end, radio_name, end_id=limit)",
"def get(self):\n limit = request.args.get('limit')\n radio_name = request.args.get('radio_name')\n return tracks_import.TracksImport.get_imports_per_radio(radio_name, end_id=limit)",
"def reset_radio():\n\t\tcommand = \"reset=0\"\n\t\treturn(str(uart_tx(command)).split(\"\\\\\")[0], str(uart_rx()).split(\"\\\\\")[0])",
"def make_radio_buttons(self):\n self.fig.subplots_adjust(bottom=0.22)\n\n # Make the input a complete sentence (and pretty! ...ish)\n h = 0.05\n v = 0.155\n ax = self.fig.add_axes([0, 0, 1, 1])\n ax.patch.set_visible(False)\n ax.axis('off')\n ax.add_patch(Rectangle((h, 0.02), 0.88, v + 0.01, fc='white',\n edgecolor='black', zorder=-100))\n\n h += 0.01\n self.fig.text(h, v, 'I')\n\n # Certainty radio buttons\n h += 0.01\n rax = plt.axes([h, 0.065, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['certain'] = RadioButtons(rax, self.certainties)\n\n def certain_func(label):\n self.certainty = label\n logging.debug(self.certainty)\n self.radio['certain'].on_clicked(certain_func)\n\n # Target radio buttons\n h += 0.1\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['target'] = RadioButtons(rax, self.robber_names)\n\n def target_func(label):\n self.target = label\n logging.debug(self.target)\n self.radio['target'].on_clicked(target_func)\n\n h += 0.13\n self.fig.text(h, v, 'is')\n\n # Relationship radio buttons\n h += 0.02\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['relation'] = RadioButtons(rax, self.relationships)\n\n def relation_func(label):\n self.relation = label\n logging.debug(self.relation)\n self.radio['relation'].on_clicked(relation_func)\n\n # Map object radio buttons\n h += 0.125\n rax = plt.axes([h, 0.035, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['map_obj'] = RadioButtons(rax, self.groundings)\n\n def map_obj_func(label):\n self.grounding = label\n logging.debug(self.grounding)\n self.radio['map_obj'].on_clicked(map_obj_func)\n\n h += 0.1\n self.fig.text(h, v, 'and')\n\n # Movement radio buttons\n h += 0.03\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['movement'] = RadioButtons(rax, self.movements)\n\n def movement_func(label):\n self.movement = label\n logging.debug(self.movement)\n self.radio['movement'].on_clicked(movement_func)\n\n # Submission button\n h += 0.2\n rax = plt.axes([h, v / 2, 0.10, 0.06])\n self.submit_button = Button(rax, 'Submit', color=self.button_color,\n hovercolor=self.button_color_hover)\n\n def submit_selection(label):\n self.human_input = 'I ' + self.certainty + ' ' + self.target + \\\n ' is ' + self.relation + ' ' + self.grounding + ' and ' + \\\n self.movement + '.'\n logging.info('Human says: {}'.format(self.human_input))\n\n if self.human_sensor:\n self.human_sensor.input_string = self.human_input\n for str_ in self.robber_names:\n if str_ in self.human_input:\n self.human_sensor.target = str_\n self.submit_button.on_clicked(submit_selection)",
"def submitRadio(self, id1, id2, id3):\n survey, slide = self._basicSubmitSetup(id1, id2, id3)\n answer = request.params['radioButton']\n sa, result = self._basicAnswerCreation(survey, slide, answer)\n return self._basicReturnResult(result, answer)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for radio, mapped from YANG variable /access_points/access_point/radios/radio (list)
|
def _set_radio(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("id operating_frequency",yc_radio_openconfig_access_points__access_points_access_point_radios_radio, yang_name="radio", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id operating-frequency', extensions=None), is_container='list', yang_name="radio", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """radio must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("id operating_frequency",yc_radio_openconfig_access_points__access_points_access_point_radios_radio, yang_name="radio", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='id operating-frequency', extensions=None), is_container='list', yang_name="radio", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)""",
})
self.__radio = t
if hasattr(self, '_set'):
self._set()
|
[
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"def _get_radio_id(self):\n return self.__radio_id",
"def getRadii(self):\n\n return self._radii.copy()",
"def set_radio_url(self, radio):\n\n radio_url_dict = read_dict_file(RADIO_URL_FILE)\n\n if radio.lower() in radio_url_dict.keys():\n logger.debug('The radio url is changed')\n self.radio = radio.lower()\n self.url = radio_url_dict[radio.lower()]\n else:\n logger.warning('The radio doesn\\'t exist in the dictionary')",
"def add_radiobutton( self, **kw ) :\n return self._add_widget( 'radiobutton', None, **kw )",
"def select_radio(name, tab=None, timeout=default_timeout):\n if type(name) is not pywinauto.application.WindowSpecification:\n control = get_control(name, tab, timeout=timeout)\n else: # We also accept a pywinauto object, but this is for the framework, not scripts\n control = name\n if control is None:\n return False\n rect = control.get_properties()['rectangle']\n if not is_inbounds((rect.left+6, rect.mid_point().y), timeout=timeout):\n log.warning(\"Radio button not visible\")\n return False\n control.click()\n return True",
"def create_radio_button(self, *,\n name: typing.Optional[UIIdentifier] = None,\n text: typing.Optional[UILabel] = None,\n icon: typing.Optional[UIIdentifier] = None,\n value: typing.Any = None,\n group_value: typing.Optional[UIIdentifier] = None,\n **kwargs: typing.Any) -> UIDescriptionResult:\n d: UIDescriptionResult = {\"type\": \"radio_button\"}\n if name is not None:\n d[\"name\"] = name\n if text is not None:\n d[\"text\"] = text\n if icon is not None:\n d[\"icon\"] = icon\n if value is not None:\n d[\"value\"] = value\n if group_value is not None:\n d[\"group_value\"] = group_value\n self.__process_common_properties(d, **kwargs)\n return d",
"def radio_buttons(self):\n\n self.var = IntVar()\n self.__difficulties_list = []\n\n i = 0\n for mode in self.__info.get_list(\"mode\"):\n\n rb = Radiobutton(self.__group_difficulties,\n text=\"{:s}\\n{:d} mines\\n{:d}x{:d} grid\"\n .format(mode.capitalize(),\n self.__info.get_mode(mode)[\"mines\"],\n self.__info.get_mode(mode)[\"grid\"][0],\n self.__info.get_mode(mode)[\"grid\"][1]),\n variable=self.var,\n value=i,\n command=self.configure_radio)\n\n # Selects current setting.\n if mode in self.__settings[\"mode\"]:\n rb.select()\n else:\n rb.deselect()\n\n i += 1\n rb.pack(side=TOP, anchor=\"w\")\n\n self.__difficulties_list.append(rb)",
"def make_radio_buttons(self):\n self.fig.subplots_adjust(bottom=0.22)\n\n # Make the input a complete sentence (and pretty! ...ish)\n h = 0.05\n v = 0.155\n ax = self.fig.add_axes([0, 0, 1, 1])\n ax.patch.set_visible(False)\n ax.axis('off')\n ax.add_patch(Rectangle((h, 0.02), 0.88, v + 0.01, fc='white',\n edgecolor='black', zorder=-100))\n\n h += 0.01\n self.fig.text(h, v, 'I')\n\n # Certainty radio buttons\n h += 0.01\n rax = plt.axes([h, 0.065, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['certain'] = RadioButtons(rax, self.certainties)\n\n def certain_func(label):\n self.certainty = label\n logging.debug(self.certainty)\n self.radio['certain'].on_clicked(certain_func)\n\n # Target radio buttons\n h += 0.1\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['target'] = RadioButtons(rax, self.robber_names)\n\n def target_func(label):\n self.target = label\n logging.debug(self.target)\n self.radio['target'].on_clicked(target_func)\n\n h += 0.13\n self.fig.text(h, v, 'is')\n\n # Relationship radio buttons\n h += 0.02\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['relation'] = RadioButtons(rax, self.relationships)\n\n def relation_func(label):\n self.relation = label\n logging.debug(self.relation)\n self.radio['relation'].on_clicked(relation_func)\n\n # Map object radio buttons\n h += 0.125\n rax = plt.axes([h, 0.035, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['map_obj'] = RadioButtons(rax, self.groundings)\n\n def map_obj_func(label):\n self.grounding = label\n logging.debug(self.grounding)\n self.radio['map_obj'].on_clicked(map_obj_func)\n\n h += 0.1\n self.fig.text(h, v, 'and')\n\n # Movement radio buttons\n h += 0.03\n rax = plt.axes([h, 0.045, 0.15, 0.15], axisbg=self.radio_boxcolor)\n rax.patch.set_visible(False)\n rax.axis('off')\n self.radio['movement'] = RadioButtons(rax, self.movements)\n\n def movement_func(label):\n self.movement = label\n logging.debug(self.movement)\n self.radio['movement'].on_clicked(movement_func)\n\n # Submission button\n h += 0.2\n rax = plt.axes([h, v / 2, 0.10, 0.06])\n self.submit_button = Button(rax, 'Submit', color=self.button_color,\n hovercolor=self.button_color_hover)\n\n def submit_selection(label):\n self.human_input = 'I ' + self.certainty + ' ' + self.target + \\\n ' is ' + self.relation + ' ' + self.grounding + ' and ' + \\\n self.movement + '.'\n logging.info('Human says: {}'.format(self.human_input))\n\n if self.human_sensor:\n self.human_sensor.input_string = self.human_input\n for str_ in self.robber_names:\n if str_ in self.human_input:\n self.human_sensor.target = str_\n self.submit_button.on_clicked(submit_selection)",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def getInputRadioConnector(self, radiobutton):\n if radiobutton.layoutDirection() == OUTPUT_LAYOUT:\n raise Exception(\"radiobutton is not an input radiobutton.\\\n Output radiobuttons can have multiple connectors.\")\n for connector in self.connectorList:\n if connector.itemB == self:\n if self.filterframe.childAt(connector.local_posB.toPoint()) == radiobutton:\n return connector\n# if self.widget().childAt(connector.local_posB.toPoint()) == radiobutton: #For some reason the radiobuttons have the same memory addresses, even though they belong to different filters. \n# return connector\n return None",
"def addRadioButton(self, id, label=None):\n\t\tif not label: label = id\n\t\tself.widgets.append(JPLRadioButton(self.centralWidget, id, label))\n\t\tself.labels.append(None)",
"def reset_radio():\n\t\tcommand = \"reset=0\"\n\t\treturn(str(uart_tx(command)).split(\"\\\\\")[0], str(uart_rx()).split(\"\\\\\")[0])",
"def radii(self):\n return self._data.get(b'keyOriginRRectRadii')",
"def set_mode(self, nt):\n return _radio_astro_swig.detect_set_mode(self, nt)",
"def submitRadio(self, id1, id2, id3):\n survey, slide = self._basicSubmitSetup(id1, id2, id3)\n answer = request.params['radioButton']\n sa, result = self._basicAnswerCreation(survey, slide, answer)\n return self._basicReturnResult(result, answer)",
"def _check_radio_fields(self, obj):\n if not isinstance(obj.radio_fields, dict):\n return must_be(\n \"a dictionary\", option=\"radio_fields\", obj=obj, id=\"admin.E021\"\n )\n else:\n return list(\n chain.from_iterable(\n self._check_radio_fields_key(obj, field_name, \"radio_fields\")\n + self._check_radio_fields_value(\n obj, val, 'radio_fields[\"%s\"]' % field_name\n )\n for field_name, val in obj.radio_fields.items()\n )\n )",
"def crear_radiobotons(self):\n\n self.crear_botones()\n\n\n archivos = [\n (\"Python\",1),\n (\"Excel\",2),\n (\"IMAGENES PNG\",3),\n (\"IMAGENES JPG\",4),\n (\"WORD\",5),\n (\"PDF\",6)\n ]\n\n posx_rb = 10\n posy_rb = 5\n\n v = tk.IntVar()\n\n for val, t_archivo in enumerate(archivos):\n posy_rb +=5\n\n\n tk.Radiobutton(self.ventana,\n text = t_archivo,\n padx = posx_rb,\n pady = posy_rb,\n variable = v,\n command = None,\n value = val).pack(anchor=tk.W)",
"def radio_on(self, *nodeids: int) -> None:\n self._do_command(f'radio {\" \".join(map(str, nodeids))} on')",
"def radioCollection(string, numberOfCollectionItems=bool, defineTemplate=\"string\", parent=\"string\", gl=bool, select=\"string\", collectionItemArray=bool, exists=bool, useTemplate=\"string\"):\n pass"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for hidden, mapped from YANG variable /access_points/access_point/ssids/ssid/config/hidden (boolean)
|
def _set_hidden(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="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """hidden must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("false"), is_leaf=True, yang_name="hidden", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__hidden = t
if hasattr(self, '_set'):
self._set()
|
[
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"def _set_hidden(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=\"hidden\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"hidden must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"false\"), is_leaf=True, yang_name=\"hidden\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__hidden = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_hidden(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=\"hidden\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"hidden must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"false\"), is_leaf=True, yang_name=\"hidden\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__hidden = t\n if hasattr(self, '_set'):\n self._set()",
"def hidden(self, hidden):\n \n self._hidden = hidden",
"def setHidden( self, state ):\r\n\t\tself._nativePointer.ishidden = state\r\n\t\treturn True",
"def _set_hide_network(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(\n v,\n base=YANGBool,\n is_leaf=True,\n yang_name=\"hide-network\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/network-instance\",\n defining_module=\"openconfig-network-instance\",\n yang_type=\"boolean\",\n is_config=True,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"hide_network must be of a type compatible with boolean\"\"\",\n \"defined-type\": \"boolean\",\n \"generated-type\": \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"hide-network\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='boolean', is_config=True)\"\"\",\n }\n )\n\n self.__hide_network = t\n if hasattr(self, \"_set\"):\n self._set()",
"def has_hidden(self, ):\n return self.AttributeNames.HIDDEN in self.attrs",
"def SetShowNeverConnect(self, value):\n self.config.set(\"Settings\", \"show_never_connect\", bool(value),\n write=True)\n self.show_never_connect = bool(value)",
"def hidden(self) -> bool:\n return super(Account, self).get_slot_value('hidden') == 'true'",
"def remove_hidden(self, ):\n self.attrs.remove_attribute(self.AttributeNames.HIDDEN)\n return self",
"def setHidden(self, state, options=None, affectObjects=False):\r\n\t\tself._nativePointer.ishidden = state\r\n\r\n\t\tif affectObjects:\r\n\t\t\t# update the objects on this layer\r\n\t\t\tnativeObjects = self._nativeObjects()\r\n\t\t\tif ( state ):\r\n\t\t\t\tmxs.hide( nativeObjects )\r\n\t\t\telse:\r\n\t\t\t\tmxs.unhide( nativeObjects )\r\n\r\n\t\t\t# toggle visible rendering options\r\n\t\t\tself._scene._toggleNativeVisibleState(nativeObjects, options)\r\n\r\n\t\t\t# update the atmospherics on this layer\r\n\t\t\tfor atmos in self.atmospherics():\r\n\t\t\t\tatmos.setEnabled( not state )\r\n\r\n\t\t\t# update the fx instances on this layer\r\n\t\t\tfor fx in self.fxs():\r\n\t\t\t\tfx.setEnabled( not state )\r\n\r\n\t\treturn True",
"def is_hidden(self):\n with codecs.open(self.path, mode='r') as file:\n for i in range(10):\n content = file.readline()\n if content.find(\"hidden\") != -1:\n if content.split(\":\")[1].strip().lower() == \"true\":\n return True\n return False",
"def is_hidden(self):\n if self.cellStatus == 'H':\n return True\n else:\n return False\n pass",
"def is_formula_hidden(self, is_formula_hidden):\n\n self.container['is_formula_hidden'] = is_formula_hidden",
"def is_hidden(self):\n return isinstance(self._state, window_states.HiddenWindowState)",
"def hidden_for_user(self, value):\n self.logger.warn(\n \"Setting values on hidden_for_user will NOT update the remote Canvas instance.\"\n )\n self._hidden_for_user = value",
"def is_hidden(khoros_object, identifier=None, category_details=None):\n return get_category_field(khoros_object, 'hidden', identifier, category_details)",
"def _hideShowIncidentTypes(self, incidentTypes, hidden):\n try:\n with self._db as db:\n for incidentType in incidentTypes:\n db.execute(\n self._query_hideShowIncidentType, (hidden, incidentType)\n )\n except SQLiteError as e:\n self.log.critical(\n \"Unable to create show types: {incidentTypes}\",\n incidentTypes=incidentTypes\n )\n raise StorageError(e)\n\n self.log.info(\n \"Setting hidden to {hidden} for incident types: {incidentTypes}\",\n storeWriteClass=IncidentType,\n incidentTypes=incidentTypes, hidden=hidden,\n )",
"def hide_file(path):\n __import__('ctypes.wintypes')\n SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW\n SetFileAttributes.argtypes = (ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD)\n SetFileAttributes.restype = ctypes.wintypes.BOOL\n FILE_ATTRIBUTE_HIDDEN = 2\n ret = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN)\n if not ret:\n raise ctypes.WinError()",
"async def hide(self, ctx):\n try:\n config = self.bot.db['stats'][str(ctx.guild.id)]['hidden']\n except KeyError:\n return\n channel = str(ctx.channel.id)\n if channel in config:\n config.remove(channel)\n await ctx.send(f\"Removed this channel from the list of hidden channels. It will now be shown when \"\n f\"someone calls their stats page.\")\n else:\n config.append(channel)\n await ctx.send(f\"Hid this channel. When someone calls their stats page, it will not be shown.\")\n await hf.dump_json()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for basic_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/basic_data_rates_2g (identityref)
|
def _get_basic_data_rates_2g(self):
return self.__basic_data_rates_2g
|
[
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def correlationFromBasel2(defaultRate):\n rhoB = 0.12*(1-np.exp(-50*defaultRate))/(1-np.exp(-50))+0.24*(1-(1-np.exp(-50*defaultRate))/(1-np.exp(-50)))\n\n return rhoB",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None",
"def get_alt_genotype(ref, alt1, alt2=None):\n if alt2 == None:\n alt2 = alt1\n if alt1.upper() == ref.upper() and alt2.upper() == ref.upper():\n vcf_alt = '.'\n vcf_gt = '0/0'\n elif alt1.upper() == alt2.upper():\n vcf_alt = alt1\n vcf_gt = '1/1'\n elif alt1.upper() == ref.upper():\n vcf_alt = alt2\n vcf_gt = '0/1'\n elif alt2.upper() == ref.upper():\n vcf_alt = alt1\n vcf_gt = '0/1'\n else:\n vcf_alt = ','.join([alt1, alt2])\n vcf_gt = '1/2'\n return(vcf_alt, vcf_gt)",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def find_goldrates(identity) -> list:\r\n\t\tuser = User.find_by_gid(identity)\r\n\t\tgoldrates = GoldRate.find_all(nest_id=user.nest.id)\r\n\t\tif goldrates:\r\n\t\t\treturn jsonList(goldrates)\r\n\t\treturn None",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def click_gli2():\n try:\n led_X = config.get(\"gli2\", \"ir_led_X\")\n led_Y = config.get(\"gli2\", \"ir_led_Y\")\n\n pd_X = config.getint(\"gli2\", \"pd_X\")\n pd_Y = config.getint(\"gli2\", \"pd_Y\")\n except KeyError:\n raise KeyError(\n \"\"\"\nRequires following populated in config.ini:\n\n[gli2]\nir_led_X=\nir_led_Y=\npd_X=\npd_Y=\n\n \"\"\"\n )\n click.echo(\n gli2(\n pd_X,\n pd_Y,\n led_X,\n led_Y,\n unit=get_unit_name(),\n experiment=UNIVERSAL_EXPERIMENT,\n )\n )\n return"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for basic_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/basic_data_rates_2g (identityref)
|
def _set_basic_data_rates_2g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """basic_data_rates_2g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)""",
})
self.__basic_data_rates_2g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def correlationFromBasel2(defaultRate):\n rhoB = 0.12*(1-np.exp(-50*defaultRate))/(1-np.exp(-50))+0.24*(1-(1-np.exp(-50*defaultRate))/(1-np.exp(-50)))\n\n return rhoB",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None",
"def _assign_sym2(cmap_ops):\n cmap_ops.phase('assign sym2')\n keycap_chars = tool_utils.parse_int_ranges(\"\"\"\n 0023 # Number Sign\n 002A # Asterisk\n 0030-0039 # Digits\n 20E3 # Combining Enclosing Keycap\"\"\")\n cmap_ops.add_all(keycap_chars, 'SYM2')",
"def basic_convert(rates, from_string, to_string):\n rate = [rate for rate in rates if rate[0] == from_string and rate[1] == to_string][\n 0\n ]\n return rate[2]",
"def get_alt_genotype(ref, alt1, alt2=None):\n if alt2 == None:\n alt2 = alt1\n if alt1.upper() == ref.upper() and alt2.upper() == ref.upper():\n vcf_alt = '.'\n vcf_gt = '0/0'\n elif alt1.upper() == alt2.upper():\n vcf_alt = alt1\n vcf_gt = '1/1'\n elif alt1.upper() == ref.upper():\n vcf_alt = alt2\n vcf_gt = '0/1'\n elif alt2.upper() == ref.upper():\n vcf_alt = alt1\n vcf_gt = '0/1'\n else:\n vcf_alt = ','.join([alt1, alt2])\n vcf_gt = '1/2'\n return(vcf_alt, vcf_gt)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for supported_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/supported_data_rates_2g (identityref)
|
def _get_supported_data_rates_2g(self):
return self.__supported_data_rates_2g
|
[
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def extract_huawei_2g2g_nbrs(self):\n self.extract_huawei_2g2g_nbrs_internal()\n self.extract_huawei_2g2g_nbrs_external()\n self.extract_huawei_2g2g_nbrs_with_other_vendors()",
"def sslbe56bitrc2ciphersrate(self) :\n try :\n return self._sslbe56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def ssl40bitrc2ciphersrate(self) :\n try :\n return self._ssl40bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def ssl64bitrc4ciphersrate(self) :\n try :\n return self._ssl64bitrc4ciphersrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for supported_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/supported_data_rates_2g (identityref)
|
def _set_supported_data_rates_2g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """supported_data_rates_2g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)""",
})
self.__supported_data_rates_2g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def sslbe56bitrc2ciphersrate(self) :\n try :\n return self._sslbe56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl40bitrc2ciphersrate(self) :\n try :\n return self._ssl40bitrc2ciphersrate\n except Exception as e:\n raise e",
"def extract_huawei_2g2g_nbrs(self):\n self.extract_huawei_2g2g_nbrs_internal()\n self.extract_huawei_2g2g_nbrs_external()\n self.extract_huawei_2g2g_nbrs_with_other_vendors()",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for basic_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/basic_data_rates_5g (identityref)
|
def _get_basic_data_rates_5g(self):
return self.__basic_data_rates_5g
|
[
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def _get_img(self, net_id):\n def fix_strength(val, default):\n \"\"\" Assigns given strength to a default value if needed. \"\"\"\n return val and int(val) or default\n\n def get_prop(prop):\n return wireless.GetWirelessProperty(net_id, prop)\n\n strength = fix_strength(get_prop(\"quality\"), -1)\n dbm_strength = fix_strength(get_prop('strength'), -100)\n\n if daemon.GetWPADriver() == 'ralink legacy' or \\\n daemon.GetSignalDisplayType() == 1:\n if dbm_strength >= -60:\n signal_img = 'signal-100'\n elif dbm_strength >= -70:\n signal_img = 'signal-75'\n elif dbm_strength >= -80:\n signal_img = 'signal-50'\n else:\n signal_img = 'signal-25'\n else:\n if strength > 75:\n signal_img = 'signal-100'\n elif strength > 50:\n signal_img = 'signal-75'\n elif strength > 25:\n signal_img = 'signal-50'\n else:\n signal_img = 'signal-25'\n return signal_img",
"def httpcltttfp_4rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_4rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def orb5min_open(self, orb5min_open):\n\n self._orb5min_open = orb5min_open",
"def IEEE2030_5_http_get(IEEE2030_5_resource_name):\n r = requests.get('{}/dcap/{}'.format(web_address, IEEE2030_5_resource_name))\n assert r.status_code == 200\n return IEEE2030_5Parser.parse(r.text.encode('ascii', 'ignore'))",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None",
"def orb5min_open(self):\n return self._orb5min_open"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for basic_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/basic_data_rates_5g (identityref)
|
def _set_basic_data_rates_5g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """basic_data_rates_5g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)""",
})
self.__basic_data_rates_5g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def orb5min_open(self, orb5min_open):\n\n self._orb5min_open = orb5min_open",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def set_default_exchange_rate(self):\n self.gui.spn_exchange_rate.setValue(\n Decimal(self.ctl.get_parameter_value(5))\n )",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def orb5min_close(self, orb5min_close):\n\n self._orb5min_close = orb5min_close",
"def _5(self, _5):\n\n self.__5 = _5"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for supported_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/supported_data_rates_5g (identityref)
|
def _get_supported_data_rates_5g(self):
return self.__supported_data_rates_5g
|
[
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def httpcltttfp_6rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_6rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def sslbe56bitrc4ciphersrate(self) :\n try :\n return self._sslbe56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for supported_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/config/supported_data_rates_5g (identityref)
|
def _set_supported_data_rates_5g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """supported_data_rates_5g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)""",
})
self.__supported_data_rates_5g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_6rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_6rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def EgtpS5S8SgwOptions(self):\n\t\tfrom ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocolstack.egtps5s8sgwoptions_rhy2svzwd0cfm1uzhtz3dpchrpb25z import EgtpS5S8SgwOptions\n\t\treturn EgtpS5S8SgwOptions(self)",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for ipv6_ndp_filter, mapped from YANG variable /access_points/access_point/ssids/ssid/config/ipv6_ndp_filter (boolean)
|
def _set_ipv6_ndp_filter(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="ipv6-ndp-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """ipv6_ndp_filter must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="ipv6-ndp-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__ipv6_ndp_filter = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def FilterIpV6MulticastVpn(self):\n return self._get_attribute('filterIpV6MulticastVpn')",
"def FilterIpv6MulticastBgpMplsVpn(self):\n return self._get_attribute('filterIpv6MulticastBgpMplsVpn')",
"def i_pv6_enabled(self):\n ret = self._get_attr(\"IPv6Enabled\")\n return ret",
"def FilterIpv6UnicastFlowSpec(self):\n return self._get_attribute('filterIpv6UnicastFlowSpec')",
"def ipv6(self, ipv6: SubUnnumberedTop):\n\n self._ipv6 = ipv6",
"def enable_static_ip_config_v6(self, ipv6_address, ipv6_network_mask_prefix_length):\n if not isinstance(ipv6_address, basestring):\n raise TypeError(\"ipv6_address can only be an instance of type basestring\")\n if not isinstance(ipv6_network_mask_prefix_length, baseinteger):\n raise TypeError(\"ipv6_network_mask_prefix_length can only be an instance of type baseinteger\")\n self._call(\"enableStaticIPConfigV6\",\n in_p=[ipv6_address, ipv6_network_mask_prefix_length])",
"def get_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\treturn response\n\t\texcept Exception as e :\n\t\t\traise e",
"def count_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.count = True\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\tif response :\n\t\t\t\treturn response[0].__dict__['___count']\n\t\t\treturn 0\n\t\texcept Exception as e :\n\t\t\traise e",
"def loopback_ip6(self):\n ret = self._get_attr(\"loopbackIp6\")\n return ret",
"def save_nf_filter(nf_filter, subscription_name):\n logger.info(f'Saving nf filter for subscription request: {subscription_name}')\n new_filter = NetworkFunctionFilterModel(subscription_name=subscription_name,\n nf_names=nf_filter['nfNames'],\n model_invariant_ids=nf_filter['modelInvariantIDs'],\n model_version_ids=nf_filter['modelVersionIDs'],\n model_names=nf_filter['modelNames'])\n db.session.add(new_filter)",
"def _set_bpdu_filter(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=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"bpdu_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__bpdu_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def streamingbypass_ipv6_set(ipv6_addrs: str):\n return _run_speedify_cmd([\"streamingbypass\", \"ipv6\", \"set\", ipv6_addrs])",
"def host_ip_v6(self, host_ip_v6):\n\n self._host_ip_v6 = host_ip_v6",
"def ipv6_netmask(self, ipv6_netmask):\n if ipv6_netmask is not None and len(ipv6_netmask) > 43:\n raise ValueError(\"Invalid value for `ipv6_netmask`, length must be less than or equal to `43`\") # noqa: E501\n if ipv6_netmask is not None and len(ipv6_netmask) < 6:\n raise ValueError(\"Invalid value for `ipv6_netmask`, length must be greater than or equal to `6`\") # noqa: E501\n\n self._ipv6_netmask = ipv6_netmask",
"def test_resolveOnlyIPv6(self):\n self._resolveOnlyTest([IPv6Address], AF_INET6)",
"def test_ipv6address_ne_(self):\n n = 10**6\n data = [\n ('::4', '::4'),\n ('::4', '::3'),\n ('::4', '::5'),\n ]\n for a1, a2 in data:\n addr1 = ip.IPv6Address(a1)\n addr2 = ip.IPv6Address(a2)\n time1, result1 = timefn(n, addr1.__ne__, addr2)\n eaddr1 = eip.IPv6Address(a1)\n eaddr2 = eip.IPv6Address(a2)\n time2, result2 = timefn(n, eaddr1.__ne__, eaddr2)\n results = (time1, result1), (time2, result2)\n self.report_6a.report(fn_name(), n, results, (addr1, addr2))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for station_isolation, mapped from YANG variable /access_points/access_point/ssids/ssid/config/station_isolation (boolean)
|
def _set_station_isolation(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="station-isolation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """station_isolation must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="station-isolation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__station_isolation = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def enable_network_isolation(self):\n return False if not self._enable_network_isolation else self._enable_network_isolation",
"def excluded_tv_stations(self, excluded_tv_stations):\n\n self._excluded_tv_stations = excluded_tv_stations",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def is_stationary(self):\n ...",
"def has_station(event: str, station: str):\n return station in get_catalog()[event]",
"def create_station(station_id, station_name,elevation, forecast_office_id,obs_url):\r\n\r\n station = Station(station_id = station_id, station_name = station_name,\r\n elevation = elevation, forecast_office_id = forecast_office_id,\r\n observation_url = obs_url)\r\n\r\n db.session.add(station)\r\n db.session.commit()\r\n\r\n return station",
"def user32_SetProcessWindowStation(jitter):\n ret_ad, args = jitter.func_args_stdcall([\"hWinSta\"])\n raise RuntimeError('API not implemented')\n jitter.func_ret_stdcall(ret_ad, ret_value)",
"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_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def set_standby(self):\n bytes_to_write = self._to_byte_array((Commands.TOGGLE_STATE_COMMAND, Commands.STANDBY))\n Controller._write_bytes(bytes_to_write)",
"def _set_band_steering(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"band_steering must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__band_steering = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ssids(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_ssids_openconfig_wifi_mac__ssids, is_container='container', yang_name=\"ssids\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ssids must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_ssids_openconfig_wifi_mac__ssids, is_container='container', yang_name=\"ssids\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__ssids = t\n if hasattr(self, '_set'):\n self._set()",
"def doeselevationexist(station_number, contract_name):\n count = sqlModels.StationElevation.select().where(sqlModels.StationElevation.station_number == station_number, sqlModels.StationElevation.contract_name == contract_name).count()\n return count >= 1",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def get_stn_column(self):\n return self._obj[a._obj.attrs[\"STATIONS\"]]",
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"def activate_zoneset(self, cfgname):\n cmd_list = [zone_constant.ACTIVATE_ZONESET, cfgname]\n return self._ssh_execute(cmd_list, True, 1)",
"def get_station(self, id):\n status, data = self.http_client.get_json(\n NAMED_STATION_URI % str(id),\n params={'appid': self.API_key},\n headers={'Content-Type': 'application/json'})\n return Station.from_dict(data)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for opmode, mapped from YANG variable /access_points/access_point/ssids/ssid/config/opmode (enumeration)
|
def _set_opmode(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={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type("OPEN"), is_leaf=True, yang_name="opmode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """opmode must be of a type compatible with enumeration""",
'defined-type': "openconfig-access-points:enumeration",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type("OPEN"), is_leaf=True, yang_name="opmode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=True)""",
})
self.__opmode = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_opmode(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={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-access-points:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_opmode(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'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_opmode(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'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_operation_mode(self, operation_mode: str) -> None:\n raise NotImplementedError()",
"def GetOperationalMode(self, iwconfig):\n return misc.to_unicode(self.wifi.GetOperationalMode(iwconfig))",
"def set_operating_mode(self, channel, mode):\n self.logger.debug('Set operating mode: {}'.format(mode))\n self.query(\"L{}I{}\".format(channel, self.MODES[mode]))",
"def _set_connection_mode(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'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__connection_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_mode(mode):\n master = mavutil.mavlink_connection('udpin:0.0.0.0:14550')\n master.wait_heartbeat()\n\n mode_id = master.mode_mapping()[mode]\n master.mav.set_mode_send(\n master.target_system,\n mavutil.mavlink.MAV_MODE_FLAG_CUSTOM_MODE_ENABLED,\n mode_id)\n print(\"Mode \" + mode + \" successfully set.\")\n return True",
"def set_mode(self, mode):\n self.mode = mode\n if mode == \"train\" or mode is True:\n self.models.train()\n elif mode in [\"val\", \"test\", \"eval\"] or mode is False:\n self.models.eval()\n else:\n raise ValueError(f\"Invalid model mode `{mode}`!\")",
"def _set_connection_mode(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={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-access-points:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__connection_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_mode(self, mode):\n self._mode = mode",
"async def async_set_operation_mode(self, operation_mode):\n mode = self._state_to_pizone[operation_mode]\n await self._wrap_and_catch(self._controller.set_mode(mode))",
"def set_mode(self, mode: OutputMode | None) -> None:\n if mode is None:\n lib.wlr_output_set_mode(self._ptr, ffi.NULL)\n else:\n lib.wlr_output_set_mode(self._ptr, mode._ptr)",
"def _parse_operation_mode(sdk_key, config):\n if sdk_key == 'localhost':\n _LOGGER.debug('Using Localhost operation mode')\n return 'localhost', 'localhost'\n\n if 'redisHost' in config or 'redisSentinels' in config:\n _LOGGER.debug('Using Redis storage operation mode')\n return 'consumer', 'redis'\n\n if config.get('storageType') is not None:\n if config.get('storageType').lower() == 'pluggable':\n _LOGGER.debug('Using Pluggable storage operation mode')\n return 'consumer', 'pluggable'\n\n _LOGGER.warning('You passed an invalid storageType, acceptable value is '\n '`pluggable`. Defaulting storage to In-Memory mode.')\n\n _LOGGER.debug('Using In-Memory operation mode')\n return 'standalone', 'memory'",
"def mode(self, mode):\n # type: (SrtMode) -> None\n\n if mode is not None:\n if not isinstance(mode, SrtMode):\n raise TypeError(\"Invalid type for `mode`, type has to be `SrtMode`\")\n\n self._mode = mode",
"def operation_modes(self) -> List[str]:\n modes: List[str] = []\n\n conf_dev = self._device_conf\n if conf_dev.get(\"hascoolonly\", 0) != 1:\n modes.append(OPERATION_MODE_HEAT)\n\n if conf_dev.get(\"hasdrymode\", 0) == 1:\n modes.append(OPERATION_MODE_DRY)\n\n modes.append(OPERATION_MODE_COOL)\n modes.append(OPERATION_MODE_FAN_ONLY)\n\n if conf_dev.get(\"hasautomode\", 0) == 1:\n modes.append(OPERATION_MODE_HEAT_COOL)\n\n return modes",
"def set_mode(self, val):\n # self.property_set(register_name, val)\n self.property_set(\"mode\", Sample(0, value=val, unit=\"dF\"))\n \n try:\n self.serial_send(\"A=1,Z=1,M=\" + str(self.modes[val.title()]) + \"\\x0D\")\n except:\n print \"error setting thermostat\""
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dva, mapped from YANG variable /access_points/access_point/ssids/ssid/config/dva (boolean)
|
def _set_dva(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dva", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dva must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dva", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dva = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def densityvap(salt=None,temp=None,pres=None,dliq=None,dvap=None,\n chkvals=False,chktol=_CHKTOL,salt0=None,temp0=None,pres0=None,\n dliq0=None,dvap0=None,chkbnd=False,useext=False,mathargs=None):\n salt, temp, pres, dliq, dvap = eq_stp(salt=salt,temp=temp,pres=pres,\n dliq=dliq,dvap=dvap,chkvals=chkvals,chktol=chktol,salt0=salt0,\n temp0=temp0,pres0=pres0,dliq0=dliq0,dvap0=dvap0,chkbnd=chkbnd,\n useext=useext,mathargs=mathargs)\n return dvap",
"def di_dv(self, v: float) -> float:\n raise NotImplementedError",
"def ddeta(\n self,\n varname,\n hcoord=None,\n scoord=None,\n hboundary=\"extend\",\n hfill_value=None,\n sboundary=\"extend\",\n sfill_value=None,\n attrs=None,\n ):\n\n assert isinstance(\n varname, str\n ), \"varname should be a string of the name of a variable stored in the Dataset\"\n assert varname in self.ds, 'variable called \"varname\" must be in Dataset'\n var = xroms.ddeta(\n self.ds[varname],\n self.grid,\n hcoord=hcoord,\n scoord=scoord,\n hboundary=hboundary,\n hfill_value=hfill_value,\n sboundary=sboundary,\n sfill_value=sfill_value,\n attrs=attrs,\n )\n\n self._ds[var.name] = var\n return self._ds[var.name]",
"def enable_di(self, value):\n self._set_property('enable_di', value)",
"def HasDPA(self):\n return self.__has('DPA')",
"def dvdz(self):\n\n if \"dvdz\" not in self.ds:\n var = xroms.dvdz(self.ds.v, self.grid, sboundary=\"extend\")\n self.ds[\"dvdz\"] = var\n return self.ds[\"dvdz\"]",
"def set_dtr(self, value, *args, **kwargs):\n with self.change_connection():\n self.connection.dtr = bool(value)",
"def vdus(self, vdus):\n if vdus is None:\n raise ValueError(\"Invalid value for `vdus`, must not be `None`\")\n\n self._vdus = vdus",
"def set_vif_host_backend_vdpa_config(\n conf, dev_path, rx_queue_size=None, tx_queue_size=None,\n):\n conf.net_type = \"vdpa\"\n conf.source_dev = dev_path\n if rx_queue_size:\n conf.vhost_rx_queue_size = rx_queue_size\n if tx_queue_size:\n conf.vhost_tx_queue_size = tx_queue_size",
"def set(self, v: 'vnl_vectorD') -> \"vnl_diag_matrixD &\":\n return _vnl_diag_matrixPython.vnl_diag_matrixD_set(self, v)",
"def show_dvm (self, dvm_name, force=0): \n debug (\"In MayaVi::show_dvm ()\")\n if not dvm_name:\n return\n if (self.cur_dvm_name != dvm_name) or (not self.cur_dvm_name) \\\n or force:\n if self.cur_dvm_name:\n old_dvm = self.data_viz_mgr[self.cur_dvm_name]\n old_dvm.close_gui ()\n self.cur_dvm_name = dvm_name\n dvm = self.data_viz_mgr[self.cur_dvm_name]\n self.gui.create_dvm_gui(dvm)",
"def ds_factory_enabled(self, ds_factory_enabled: ConfigNodePropertyBoolean):\n\n self._ds_factory_enabled = ds_factory_enabled",
"def addBool(self, ln, dv = 0):\n \n cmds.addAttr( ln = ln, at = 'bool', dv = dv)",
"def test_total_dv_sensitivities(self):\n # Make sure vecs are initialized to zero\n self.zero_tacs_vecs()\n\n # Initial solve\n func_vals = self.run_solve()\n\n # Compute the total derivative w.r.t. material design variables using adjoint\n self.run_adjoints()\n self.assembler.addDVSens(self.func_list, self.dfddv_list, 1.0)\n self.assembler.addAdjointResProducts(\n self.adjoint_list, self.dfddv_list, -1.0\n )\n # Accumulate sensitivity across all procs\n self.set_tacs_vec_values(self.dfddv_list)\n\n # Compute the total derivative w.r.t. material design variables using fd/cs\n self.perturb_tacs_vec(self.dv1, self.dv0, self.dv_pert)\n # Run perturbed solution\n func_vals_pert = self.run_solve(dv=self.dv1)\n # Compute approximate sens\n fdv_sens_approx = self.compute_fdcs_approx(func_vals_pert, func_vals)\n\n # Tests cs/fd against sensitivity from adjoint\n for i in range(len(self.func_list)):\n with self.subTest(function=self.func_list[i]):\n dfddv_proj_i = self.dfddv_list[i].dot(self.dv_pert)\n np.testing.assert_allclose(\n dfddv_proj_i, fdv_sens_approx[i], rtol=self.rtol, atol=self.atol\n )",
"def set_diode_current(self, current):\n if (type(current) != int and type(current) != float) or current <= 0:\n raise ValueError(\"Diode current must be a positive, non-zero number!\")\n\n response = self._send_command(\"DC \" + str(current))\n if response == b\"ok\\r\\n\":\n self.diodeCurrent = current\n self.energyMode = 0 # Whenever diode current is adjusted manually, the energy mode is set to manual.\n return True\n raise LaserCommandError(Laser.get_error_code_description(response))",
"def is_dazed(sim_info: SimInfo) -> bool:\n return CommonMoodUtils.has_mood(sim_info, CommonMoodId.DAZED)",
"def option_value(self, Vu, Vd):\r\n return math.exp(-self.r) * (self.p_value() * Vu + (1 - self.p_value()) * Vd)",
"def debug(self, value):\n self._debug = bool(value)\n self.serial_device.setDebug(value)",
"def aps_devel_mode(self, disable=False):\n hub = _get_hub()\n r = hub.setSystemProperty(account_id=1, name='APS_DEVEL_MODE', bool_value=not bool(disable))\n _osaapi_raise_for_status(r)\n print(\"APS Development mode {}.\".format('DISABLED' if disable else 'ENABLED'))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dhcp_required, mapped from YANG variable /access_points/access_point/ssids/ssid/config/dhcp_required (boolean)
|
def _set_dhcp_required(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dhcp-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dhcp_required must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dhcp-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dhcp_required = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dhcp_required(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=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dhcp_required must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dhcp_required = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dhcp_required(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=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dhcp_required must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dhcp_required = t\n if hasattr(self, '_set'):\n self._set()",
"def enable_dhcp(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_dhcp\")",
"def need_dhcp_server(self):\n ret = self._get_attr(\"needDhcpServer\")\n return ret",
"def _vmware_dhcp_ip_config(self, args: parser_extensions.Namespace):\n kwargs = {\n 'enabled': flags.Get(args, 'enable_dhcp'),\n }\n if flags.IsSet(kwargs):\n return messages.VmwareDhcpIpConfig(**kwargs)\n return None",
"def dhcp_enabled(self):\n ret = self._get_attr(\"DHCPEnabled\")\n return ret",
"def enable_dhcp(self, ip_host_num):\n return [\"ip-host %s dhcp-enable true ping-response true traceroute-response true\" % ip_host_num]",
"def enableDHCPClick():\n os.system(\"mount -o rw,remount /\")\n os.system(\"cp netctl/ethernet-dhcp /etc/netctl/eth0\")\n os.system(\"mount -o ro,remount /\")\n lcdPrint(\"Obtaining IP...\")\n lcd.setCursor(15,0)\n lcd.ToggleBlink()\n os.system(\"ip link set eth0 down\")\n os.system(\"netctl restart eth0\")\n ip = socket.gethostbyname(socket.getfqdn())\n lcd.ToggleBlink()\n lcdPrint(\"Enabled DHCP:\\n\"+ip, 2)",
"def create_dhcp_options(DryRun=None, DhcpConfigurations=None):\n pass",
"async def begin_create_dhcp(\n self,\n resource_group_name: str,\n private_cloud_name: str,\n dhcp_id: str,\n workload_network_dhcp: IO,\n *,\n content_type: str = \"application/json\",\n **kwargs: Any\n ) -> AsyncLROPoller[_models.WorkloadNetworkDhcp]:",
"async def begin_create_dhcp(\n self,\n resource_group_name: str,\n private_cloud_name: str,\n dhcp_id: str,\n workload_network_dhcp: _models.WorkloadNetworkDhcp,\n *,\n content_type: str = \"application/json\",\n **kwargs: Any\n ) -> AsyncLROPoller[_models.WorkloadNetworkDhcp]:",
"def configure_dhcp():\n dhcp_config = {}\n dhcp_config_content = \"\"\"\nddns-update-style none;\ndefault-lease-time 600;\nmax-lease-time 7200;\noption domain-name-servers 84.200.69.80, 84.200.70.40;\noption domain-name \"pikube.local\";\nauthorative;\nlog-facility local7;\n\nsubnet 10.12.29.0 netmask 255.255.255.0 {\n range 10.12.29.10 10.12.29.100;\n}\n\"\"\"\n\n dhcp_config['path'] = r'/etc/dhcp/dhcpd.conf'\n dhcp_config['encoding'] = \"b64\"\n dhcp_config['content'] = base64.b64encode(\n bytes(dhcp_config_content, \"utf-8\"))\n return dhcp_config",
"def _set_ethernet_pmd_preconf(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={'oc-opt-types:ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}},), is_leaf=True, yang_name=\"ethernet-pmd-preconf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ethernet_pmd_preconf must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-platform-transceiver:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'oc-opt-types:ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}},), is_leaf=True, yang_name=\"ethernet-pmd-preconf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__ethernet_pmd_preconf = t\n if hasattr(self, '_set'):\n self._set()",
"def attach_required(self, value: bool):\n self._properties[\"attachRequired\"] = value",
"def attach_required(self) -> bool:\n return typing.cast(\n bool,\n self._properties.get(\"attachRequired\"),\n )",
"def set_dhcp_server(self, config):\n self.navigate_to(self.CONFIGURE, self.CONFIGURE_SYSTEM, 2)\n if not self.s.is_element_present(self.info['loc_cfg_system_dhcps_fieldset']):\n raise Exception('The DHCP Server configurate field is invisible')\n\n else:\n enable_checkbox = self.info['loc_cfg_system_dhcps_enable_checkbox']\n enable_server = False if not config.has_key('enable') else config['enable']\n\n if not enable_server:\n # Uncheck the enable DHCPs server checkbox\n if self.s.is_checked(enable_checkbox):\n self.s.click_and_wait(enable_checkbox)\n\n # Click apply button\n self.s.click_and_wait(self.info['loc_cfg_system_dhcps_apply_button'], 3)\n\n return\n\n # Check the enable DHCPs server checkbox\n if not self.s.is_checked(enable_checkbox):\n self.s.click_and_wait(enable_checkbox)\n\n # Set starting ip value\n if config.has_key('start_ip'):\n self.s.type_text(self.info['loc_cfg_system_dhcps_starting_ip_textbox'], config['start_ip'])\n\n # Set ip range value\n if config.has_key('number_ip'):\n self.s.type_text(self.info['loc_cfg_system_dhcps_number_ip_textbox'], str(config['number_ip']))\n\n # Set lease time value\n if config.has_key('leasetime'):\n self.s.select_option(self.info['loc_cfg_system_dhcps_leasetime_options'], config['leasetime'])\n\n # Click 'Cancel' on the confirmation dialog to ZD do nothing if not ZD will auto correct the setting value.\n self.s.choose_cancel_on_next_confirmation()\n # Click apply button\n self.s.click_and_wait(self.info['loc_cfg_system_dhcps_apply_button'], 3)\n msg = ''\n # The ZD will be genarate an alert or an confirm dialog if there are any invalid or wrong setting value is setted.\n # Get any exist alert message\n if self.s.is_alert_present(5):\n msg = self.s.get_alert()\n\n # Get any confirmation message\n elif self.s.is_confirmation_present(5):\n msg = self.s.get_confirmation()\n\n if msg:\n raise Exception(msg)",
"def setRequired(self, required):\n self.__isRequired = required",
"def fpolicy_set_required(self, policy_name, required):\n return self.request( \"fpolicy-set-required\", {\n 'policy_name': [ policy_name, 'policy-name', [ basestring, 'None' ], False ],\n 'required': [ required, 'required', [ bool, 'None' ], False ],\n }, {\n } )",
"def dhcp_callback(self, pkt):\n # pkt.show()\n\n if DHCP in pkt:\n if BOOTP in pkt:\n client_mac = pkt[BOOTP].chaddr\n transaction_id = pkt[BOOTP].xid\n\n # Handle DHCP DISCOVER frames\n if get_option(pkt[DHCP].options, \"message-type\") == 1:\n # Get DHCP DISCOVER packet details\n logger.info(\n f\"TRANSACTION {transaction_id}: DHCP DISCOVER from MAC {client_mac}\")\n\n # Check if there is an address to lease\n available_ip = self.get_leased(macbytes2str(client_mac))\n if available_ip is not None:\n # Lease to MAC\n self._assignments[available_ip] = macbytes2str(\n client_mac)\n\n # Prepare & send DHCP OFFER frame\n bootp = BOOTP(\n op=2,\n yiaddr=available_ip,\n siaddr=self._ip,\n giaddr=self._ip,\n chaddr=client_mac,\n xid=transaction_id,\n )\n dhcp = DHCP(\n options=[\n (\"message-type\", \"offer\"),\n (\"server_id\", self._ip),\n (\"broadcast_address\", IPV4_BROADCAST),\n (\"router\", self._ip),\n (\"subnet_mask\", self._subnet_mask),\n (\"lease_time\", 3600),\n \"end\",\n ]\n )\n DHCP_OFFER_PKT = self._dhcp_header / bootp / dhcp\n sendp(DHCP_OFFER_PKT, verbose=0)\n\n logger.info(\n f\"TRANSACTION {transaction_id}: Sending DHCP OFFER.\")\n else:\n logger.warning(\n \"More DHCP DISCOVER packets incoming, but pool is depleted!\")\n\n # Handle DHCP REQUEST frames\n elif get_option(pkt[DHCP].options, \"message-type\") == 3:\n req_ip = get_option(pkt[DHCP].options, \"requested_addr\")\n\n try:\n if self._assignments[req_ip] == macbytes2str(client_mac):\n logger.info(\n f\"TRANSACTION {transaction_id}: DHCP REQUEST from MAC {macbytes2str(client_mac)} for IP {req_ip}\"\n )\n\n # Prepare & send DHCP ACK frame\n bootp = BOOTP(\n op=3,\n yiaddr=req_ip,\n siaddr=self._ip,\n giaddr=self._ip,\n chaddr=client_mac,\n xid=transaction_id,\n )\n dhcp = DHCP(\n options=[\n (\"message-type\", \"ack\"),\n (\"server_id\", self._ip),\n (\"broadcast_address\", IPV4_BROADCAST),\n (\"router\", self._ip),\n (\"subnet_mask\", self._subnet_mask),\n (\"lease_time\", 3600),\n \"end\",\n ]\n )\n DHCP_ACK_PKT = self._dhcp_header / bootp / dhcp\n sendp(DHCP_ACK_PKT, verbose=0)\n\n logger.info(\n f\"TRANSACTION {transaction_id}: Sending DHCP ACK\")\n self.show_dhcp_stats()\n except KeyError:\n logger.warning(\n f\"TRANSACTION {transaction_id}: DHCP REQUEST received for {req_ip}, unable to handle as not in pool!\")\n self.show_dhcp_stats()",
"def extra_dhcp_options(self) -> Sequence['outputs.GetPortExtraDhcpOptionResult']:\n return pulumi.get(self, \"extra_dhcp_options\")"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for advertise_apname, mapped from YANG variable /access_points/access_point/ssids/ssid/config/advertise_apname (boolean)
|
def _set_advertise_apname(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="advertise-apname", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """advertise_apname must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="advertise-apname", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__advertise_apname = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_advertise_apname(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=\"advertise-apname\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"advertise_apname must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"advertise-apname\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__advertise_apname = t\n if hasattr(self, '_set'):\n self._set()",
"def enable_ap(uio):\n ap_name = uio.get(b'AP_NAME')\n ap_pass = uio.get(b'AP_PASS')\n\n form = [\n [uio.HEAD, 0, \"Enable AP\"],\n [uio.TEXT, 2, 0, \"Ap Name:\"],\n [uio.STR, 3, 0, 16, ap_name],\n [uio.TEXT, 5, 0, \"Password:\"],\n [uio.STR, 6, 0, 16, ap_pass],\n ]\n\n result = uio.form(form)\n if result:\n ap_name = form[2][uio.VAL]\n ap_pass = form[4][uio.VAL]\n sta_ap = network.WLAN(network.AP_IF)\n if sta_ap.active():\n sta_ap.active(False)\n sta_ap.active(True)\n if not ap_pass.strip():\n sta_ap.config(\n essid=ap_name.encode(),\n password=ap_pass.encode(),\n authmode=network.AUTH_WPA_WPA2_PSK)\n uio.put(b'AP_NAME', ap_name)\n uio.put(b'AP_PASS', ap_pass)\n else:\n sta_ap.config(essid=ap_name, authmode=network.AUTH_OPEN)\n uio.put(b'AP_NAME', ap_name)\n\n uio.fill(uio.background)\n uio.center(\"Access Point\", 1)\n if sta_ap.active():\n uio.put(ap_name, ap_pass)\n uio.center(\"Enabled\", 2)\n ifconfig = sta_ap.ifconfig()\n uio.center(\"IP Address:\", 4)\n uio.center(ifconfig[0], 5)\n else:\n uio.center(\"Failed\", 2)\n sta_ap.active(False)\n\n uio.wait(\"Press to Continue\", 7)",
"def set_ap(self):\n apo = self.sel_access_point()\n if apo:\n self.apo = apo\n return True\n else:\n return False",
"def applicant_name(self, applicant_name):\n self._applicant_name = applicant_name",
"def ami_name(self, ami_name):\n if ami_name is None:\n raise ValueError(\"Invalid value for `ami_name`, must not be `None`\")\n\n self._ami_name = ami_name",
"def SetShouldVerifyAp(self, value):\n self.config.set(\"Settings\", \"should_verify_ap\", int(value), write=True)\n self.wifi.should_verify_ap = misc.to_bool(value)",
"def set_aa(self, b):\n _ldns.ldns_pkt_set_aa(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def create_ap_list(adapter, active_connections):\n aps = []\n ap_names = []\n active_ap = adapter.get_active_access_point()\n aps_all = sorted(adapter.get_access_points(),\n key=lambda a: a.get_strength(), reverse=True)\n conns_cur = [i for i in CONNS if\n i.get_setting_wireless() is not None and\n i.get_setting_wireless().get_mac_address() ==\n adapter.get_permanent_hw_address()]\n try:\n ap_conns = active_ap.filter_connections(conns_cur)\n active_ap_name = ssid_to_utf8(active_ap)\n active_ap_con = [active_conn for active_conn in active_connections\n if active_conn.get_connection() in ap_conns]\n except AttributeError:\n active_ap_name = None\n active_ap_con = []\n if len(active_ap_con) > 1:\n raise ValueError(\"Multiple connection profiles match\"\n \" the wireless AP\")\n active_ap_con = active_ap_con[0] if active_ap_con else None\n for nm_ap in aps_all:\n ap_name = ssid_to_utf8(nm_ap)\n if nm_ap != active_ap and ap_name == active_ap_name:\n # Skip adding AP if it's not active but same name as active AP\n continue\n if ap_name not in ap_names:\n ap_names.append(ap_name)\n aps.append(nm_ap)\n return aps, active_ap, active_ap_con",
"def setAllowAbbreviations(self, aFlag = 1):\n self.allowAbbreviations = aFlag",
"def get_apartment_name(self, soup, apartment_dict):\n\n apartment_name_tag = soup.find(class_='pageTitle')\n title = apartment_name_tag.text.strip()\n apartment_dict['name'] = title",
"def bookmarks_name(self, bookmarks_name):\n if self.local_vars_configuration.client_side_validation and bookmarks_name is None: # noqa: E501\n raise ValueError(\"Invalid value for `bookmarks_name`, must not be `None`\") # noqa: E501\n\n self._bookmarks_name = bookmarks_name",
"def send_ip_addr_adv_notif(iface_name, address, config):\n count = config.send_arp_for_ha\n\n def arping():\n _arping(iface_name, address, count)\n\n if count > 0 and netaddr.IPAddress(address).version == 4:\n eventlet.spawn_n(arping)",
"def aa(self):\n return _ldns.ldns_pkt_aa(self)\n #parameters: const ldns_pkt *,\n #retvals: bool",
"def setAP(wifi, ap):\n try:\n wifi.setAPaddr(ap)\n except Exception, detail:\n # Unexpected errors\n print type(detail), detail",
"def set_active_ap_if(active=True):\n ap_if = network.WLAN(network.AP_IF)\n if ap_if.active() != active:\n ap_if.active(active)",
"def test_ap_short_preamble(dev, apdev):\n ssid = \"short preamble\"\n params = {}\n params['ssid'] = ssid\n params['preamble'] = \"1\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def set_ad(self, b):\n _ldns.ldns_pkt_set_ad(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def api_name(self, api_name):\n\n self._api_name = api_name",
"def is_no_advertise(comm_attr):\n return comm_attr == Community.NO_ADVERTISE",
"def set_is_env_name(self, name: str, enabled: bool) -> bool:\n instance = self.get_by_name(name=name)\n self._update_attrs(\n node_id=instance[\"id\"],\n node_name=instance[\"node_name\"],\n hostname=instance[\"hostname\"],\n use_as_environment_name=enabled,\n )\n return self.get_is_env_name(name=name)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for csa, mapped from YANG variable /access_points/access_point/ssids/ssid/config/csa (boolean)
|
def _set_csa(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="csa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """csa must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="csa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__csa = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def is_ca(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"is_ca\")",
"def include_ca_cert_url(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"include_ca_cert_url\")",
"def newCsaConstraint(self, **attrlinks):\n return CsaConstraint(self, **attrlinks)",
"def corsi_against(sa, msa, bsa, *args, **kwargs):\r\n return calc_corsi(sa, msa, bsa, \"CA\")",
"def write_csf(self, address: int, data: bytes) -> bool:\n logger.info(f\"TX-CMD: WriteCSF(address=0x{address:08X}, length={len(data)})\")\n cmd_packet = CmdPacket(CommandTag.WRITE_CSF, address, 0, len(data))\n return self._send_data(cmd_packet, data)",
"def set_sonic_csat3a(self):\n idx = self.view.selectedIndexes()[0]\n selected_item = idx.model().itemFromIndex(idx)\n parent = selected_item.parent()\n parent.child(selected_item.row(), 1).setText(\"CSAT3A\")",
"def dump_csa(self):\n data = []\n\n data.append('V2.2')\n data.append('N+{}'.format(\"\" if self.clients[0] is None else self.clients[0].name))\n data.append('N-{}'.format(\"\" if self.clients[1] is None else self.clients[1].name))\n data.append('P1-HI-KA-GI-KI-OU')\n data.append('P2 * * * * -FU')\n data.append('P3 * * * * * ')\n data.append('P4+FU * * * * ')\n data.append('P5+OU+KI+GI+KA+HI')\n data.append('+')\n\n csa_kif = self.position.get_csa_kif()\n\n for (ply, kif) in enumerate(csa_kif):\n if ply % 2 == 0:\n data.append('+{}'.format(kif))\n else:\n data.append('-{}'.format(kif))\n data.append('T{}'.format(self.consumption[ply]))\n\n data.append('%{}'.format(self.gameover))\n\n return '\\n'.join(data)",
"def publish_ca_cert(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"publish_ca_cert\")",
"def csam_enabled(self):\n ret = self._get_attr(\"CSAMEnabled\")\n return ret",
"def load_cluster_ca(self, node):\n url = f'{node}/node/controller/loadTrustedCAs'\n return self._post_form_encoded(url, None)",
"def ssl_ca(self):\n return \"\"\"--ssl-ca=file_name\"\"\"",
"def retrieve_cluster_ca(self):\n url = f'{self.hostname}/pools/default/trustedCAs'\n return self._get(url)",
"def cona(self, a):\n\t\t\n\t\tif (self.distribution == 'spherical'): raise TypeError, 'Spherical spatial distribution assumed so c/a(a) does not apply here as there is no semi-major axis'\n\t\t\n\t\tcona = []\n\t\tau = 20.0\n\t\tcona0 = 0.5\n\t\tfor ar in a:\n\t\t\tif (ar < au):\n\t\t\t\t# Preston et al 1991 Eq. 14\n\t\t\t\tcona.append(cona0 + (1 - cona0)*(ar/au))\n\t\t\telif (ar > au):\n\t\t\t\tcona.append(1.0)\n\t\t\telse:\n\t\t\t\t# Not described in Preston et al what to do here so we will assume;\n\t\t\t\tcona.append(1.0)\n\t\t\n\t\treturn cona",
"def test_create_ca_csr(self):\n ca_cn = 'test-create-ca-csr'\n expected_result = {'count': 1, 'type': 'Request', 'exit_code': 0, \n 'msg': 'Found Request:'}\n expected_result['data'] = [{'req_cn': ca_cn,\n 'verify': 'success',\n 'req_as_pem': ''}]\n csr = SpokeCSR(ca_cn, self.ca_name, ca=True)\n result = csr.create()\n result['data'][0]['req_as_pem'] = ''\n self.assertEqual(result, expected_result)\n csr.delete(delete_key=True)",
"def _set_nssa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=nssa.nssa, is_container='container', presence=True, yang_name=\"nssa\", rest_name=\"nssa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-compact-syntax': None, u'info': u'Specify an nssa area', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ospfv3', defining_module='brocade-ospfv3', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"nssa must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=nssa.nssa, is_container='container', presence=True, yang_name=\"nssa\", rest_name=\"nssa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-compact-syntax': None, u'info': u'Specify an nssa area', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ospfv3', defining_module='brocade-ospfv3', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__nssa = t\n if hasattr(self, '_set'):\n self._set()",
"def acriss_code(self, acriss_code):\n if acriss_code is None:\n raise ValueError(\"Invalid value for `acriss_code`, must not be `None`\")\n\n self._acriss_code = acriss_code",
"def test_only_clangsa_config(self):\n with open(self.config_file_json, 'w+',\n encoding=\"utf-8\", errors=\"ignore\") as config_f:\n json.dump({\n 'analyze': ['--analyzers', 'clangsa']}, config_f)\n\n out, returncode = self.__run_analyze(self.config_file_json)\n\n self.assertEqual(returncode, 0)\n self.assertIn(\"clangsa analyzed simple.cpp\", out)\n self.assertNotIn(\"clang-tidy analyzed simple.cpp\", out)",
"def get_ca_address(self) -> str:\n return self._ca_address"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for gtk_timeout, mapped from YANG variable /access_points/access_point/ssids/ssid/config/gtk_timeout (uint16)
|
def _set_gtk_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="gtk-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """gtk_timeout must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="gtk-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)""",
})
self.__gtk_timeout = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"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 ),\n is_leaf=True,\n yang_name=\"timeout\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/system\",\n defining_module=\"openconfig-system\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"timeout must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(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._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__timeout = t\n if hasattr(self, \"_set\"):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_nbr_timeout(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=int,restriction_dict={'range': ['-32768..32767']}, int_size=16), restriction_dict={'range': [u'35..12600']}), default=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16)(105), is_leaf=True, yang_name=\"nbr-timeout\", rest_name=\"nbr-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set neighbor timeout'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='int16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"nbr_timeout must be of a type compatible with int16\"\"\",\n 'defined-type': \"int16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16), restriction_dict={'range': [u'35..12600']}), default=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16)(105), is_leaf=True, yang_name=\"nbr-timeout\", rest_name=\"nbr-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set neighbor timeout'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='int16', is_config=True)\"\"\",\n })\n\n self.__nbr_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def set_timeout(self, timeout):\r\n self.timeout = float(timeout)/1000.",
"def so_timeout(self, so_timeout: ConfigNodePropertyInteger):\n\n self._so_timeout = so_timeout",
"def so_timeout(self) -> ConfigNodePropertyInteger:\n return self._so_timeout",
"def set_timeout(self, timeout):\n old = getattr(self, '_timeout', 3.0)\n self._timeout = utils.timestr_to_secs(timeout)\n return utils.secs_to_timestr(old)",
"def set_timeout(self, timeout):\n\n old = getattr(self, '_timeout', 3.0)\n self._timeout = robottime.timestr_to_secs(timeout)\n return robottime.secs_to_timestr(old)",
"def vdi_timeout(self, value):\r\n\r\n request_json = {\r\n \"vDITimeOut\": value\r\n }\r\n\r\n self._set_instance_properties(\"_mssql_instance_prop\", request_json)",
"def set_notification_timeout(self, timeout):\n self.notification.RCVTIMEO = timeout",
"def timeout(self, value):\n self.__timeout = value",
"def set_timeout(self, timeout):\n self.m_timeout = timeout",
"def _set_connection_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"connection-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"connection-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__connection_time = t\n if hasattr(self, '_set'):\n self._set()",
"def set_timeout(cls, timeout):\n ...",
"def set_preferred_dgps_timeout(self, timeout):\n self.preferred_dgps_timeout = timeout\n if timeout is not None:\n self.configure_poll(CLASS_CFG, MSG_CFG_NAV5)",
"def _set_timeout(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=timeout.timeout, is_container='container', presence=False, yang_name=\"timeout\", rest_name=\"timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set a timeout parameter', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-dot1x', defining_module='brocade-dot1x', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"timeout must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=timeout.timeout, is_container='container', presence=False, yang_name=\"timeout\", rest_name=\"timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set a timeout parameter', u'cli-incomplete-no': None}}, namespace='urn:brocade.com:mgmt:brocade-dot1x', defining_module='brocade-dot1x', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def get_session_timeout(self, as_timedelta=False):\n val = self.token_set.session_timeout\n if (self.session_timeout) or (self.session_timeout != '0,0'):\n val = self.token_set.session_timeout\n if as_timedelta and val:\n (hours, minutes) = val.split(',')\n return timedelta(hours=int(hours), minutes=int(minutes))\n return val"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11k, mapped from YANG variable /access_points/access_point/ssids/ssid/config/dot11k (boolean)
|
def _set_dot11k(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11k", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11k must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11k", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dot11k = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k_neighbors(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k_neighbors must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__dot11k_neighbors = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def wabl_set_lqr_x_dot(new_kx_dot):\n #pack float as byte array\n new_kx_dot_bytes = struct.pack('f', new_kx_dot)\n\n ser.write(header)\n ser.write(x_dot_command)\n for byte in new_kx_dot_bytes:\n ser.write(bytes(byte))",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def isKnotV(*args, **kwargs):\n \n pass",
"def _set_wifi(self, ssid, key, do_reboot=True):\n key_encoded = \"\".join(\"%\" + hex(ord(c))[2:].rjust(2, \"0\") for c in key)\n data = {\"ssid\": ssid, \"key\": key_encoded, \"security\": \"mixed\"}\n self._set(\"/common/set_wifi_setting\", data)\n if do_reboot:\n res = self._do_reboot()\n logging.debug(\"Reboot ordered to activate wifi changes: %s\", res)",
"def __pget_wifi(self):\n try:\n return self.__cp.getboolean(SEC, KEY_WIFI)\n except (ValueError, AttributeError), e:\n log.warning(\"config '%s' malformed (%s)\" % (KEY_WIFI, e))\n return True",
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_okc(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=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"okc must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__okc = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_okc(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=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"okc must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__okc = t\n if hasattr(self, '_set'):\n self._set()",
"def setKnot(*args, **kwargs):\n \n pass",
"def as11_xprofile_test(self, as11_xprofile_test):\n\n self._as11_xprofile_test = as11_xprofile_test"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for enabled, mapped from YANG variable /access_points/access_point/ssids/ssid/state/enabled (boolean)
|
def _set_enabled(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """enabled must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="enabled", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__enabled = t
if hasattr(self, '_set'):
self._set()
|
[
"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='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"enabled must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(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='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__enabled = t\n if hasattr(self, '_set'):\n self._set()",
"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(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"enabled must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__enabled = t\n if hasattr(self, '_set'):\n self._set()",
"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(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"enabled must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__enabled = t\n if hasattr(self, '_set'):\n self._set()",
"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(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/probes', defining_module='openconfig-probes', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"enabled must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/probes', defining_module='openconfig-probes', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__enabled = t\n if hasattr(self, '_set'):\n self._set()",
"def _is_enabled(self, state):\n enabled = True\n\n if isinstance(self._enabled, State):\n enabled = bool(state.get(\n self._enabled.name, self._enabled.default))\n\n else:\n enabled = bool(self._enabled)\n\n return enabled",
"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, is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"enabled must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"enabled\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__enabled = t\n if hasattr(self, '_set'):\n self._set()",
"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 sending motor drive enabled state!')",
"def updateNetworkVlansEnabledState(self, networkId: str, enabled: bool):\n\n kwargs = locals()\n\n metadata = {\n 'tags': ['VLANs'],\n 'operation': 'updateNetworkVlansEnabledState',\n }\n resource = f'/networks/{networkId}/vlansEnabledState'\n\n body_params = ['enabled']\n payload = {k: v for (k, v) in kwargs.items() if k in body_params}\n\n return self._session.put(metadata, resource, payload)",
"def setEnabled(self, value):\n self._enabled = value",
"def is_enabled_for(self, security_state: Target.SecurityState) -> bool:\n assert isinstance(security_state, Target.SecurityState)\n\n # Call to superclass to read CSW. We want to bypass our CSW cache since the enable signal can change\n # asynchronously.\n csw = AccessPort.read_reg(self, self._reg_offset + MEM_AP_CSW)\n if security_state is Target.SecurityState.NONSECURE:\n # Nonsecure transfers are always allowed when security transfers are enabled.\n return (csw & (CSW_DEVICEEN | CSW_SDEVICEEN)) != 0\n elif security_state is Target.SecurityState.SECURE:\n return (csw & CSW_SDEVICEEN) != 0\n else:\n assert False, \"unsupported security state\"",
"def set_smart_connect_enabled(self, value=False):\n value = h.value_to_zero_or_one(value)\n return self._set(\n c.SERVICE_WLAN_CONFIGURATION,\n c.SET_SMART_CONNECT_ENABLED,\n {\"NewSmartConnectEnable\": value},\n )",
"def is_enabled(self) -> bool:\n if not self._system.dax_sim_enabled:\n # Check if the system was just booted\n last_asf = self.core_cache.get(self._CACHE_LAST_ASF_KEY)\n if len(last_asf) == 0:\n # Device was just booted, trap RF is off\n return False\n\n # Return the enabled flag stored as a system dataset\n # Can raise a KeyError if the key was not set before, which means the state is ambiguous\n enabled: bool = self.get_dataset_sys(self._ENABLED_KEY) # Helps the type checker\n return enabled",
"def GetEnabled(self):\n return self._is_enabled",
"def ca_stc_is_enabled(slot):\n h_slot = CK_SLOT_ID(slot)\n c_enabled = CK_BYTE()\n ret = CA_STCIsEnabled(h_slot, byref(c_enabled))\n if ret != CKR_OK:\n return ret, None\n return ret, bool(c_enabled.value)",
"async def enabled(self) -> bool:\n response = await self._adguard._request(\"safesearch/status\")\n return response[\"enabled\"]",
"def set_enabled(cls, course_key: CourseKey, enabled: bool, user: 'User') -> bool:\n raise ValueError(\"The textbook app can not be enabled/disabled for a single course.\")",
"def enable(self) -> \"SbBool\":\n return _coin.SoAudioDevice_enable(self)",
"def set_enabled(cls, course_key: CourseKey, enabled: bool, user: 'User') -> bool:\n course = get_course_by_id(course_key)\n course.show_calculator = enabled\n modulestore().update_item(course, user.id)\n return enabled",
"def is_encryption_enabled(self, is_encryption_enabled):\n\n self._is_encryption_enabled = is_encryption_enabled",
"def toggle_wifi(self, active=False):\n put_data = { 'ap_params': { 'enabled': active } }\n response = requests.put(WIFI_CONFIG, data=json.dumps(put_data),\n headers=self.get_headers())\n jr = json.loads(response.text)\n if 'success' in jr and jr['success'] == True:\n self.logger.debug('Wifi toggled')\n else:\n self.logger.error('Failed to update wifi status!')"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for basic_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/basic_data_rates_2g (identityref)
|
def _get_basic_data_rates_2g(self):
return self.__basic_data_rates_2g
|
[
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def correlationFromBasel2(defaultRate):\n rhoB = 0.12*(1-np.exp(-50*defaultRate))/(1-np.exp(-50))+0.24*(1-(1-np.exp(-50*defaultRate))/(1-np.exp(-50)))\n\n return rhoB",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None",
"def get_alt_genotype(ref, alt1, alt2=None):\n if alt2 == None:\n alt2 = alt1\n if alt1.upper() == ref.upper() and alt2.upper() == ref.upper():\n vcf_alt = '.'\n vcf_gt = '0/0'\n elif alt1.upper() == alt2.upper():\n vcf_alt = alt1\n vcf_gt = '1/1'\n elif alt1.upper() == ref.upper():\n vcf_alt = alt2\n vcf_gt = '0/1'\n elif alt2.upper() == ref.upper():\n vcf_alt = alt1\n vcf_gt = '0/1'\n else:\n vcf_alt = ','.join([alt1, alt2])\n vcf_gt = '1/2'\n return(vcf_alt, vcf_gt)",
"def find_goldrates(identity) -> list:\r\n\t\tuser = User.find_by_gid(identity)\r\n\t\tgoldrates = GoldRate.find_all(nest_id=user.nest.id)\r\n\t\tif goldrates:\r\n\t\t\treturn jsonList(goldrates)\r\n\t\treturn None",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def extract_huawei_2g2g_nbrs(self):\n self.extract_huawei_2g2g_nbrs_internal()\n self.extract_huawei_2g2g_nbrs_external()\n self.extract_huawei_2g2g_nbrs_with_other_vendors()",
"def basic_convert(rates, from_string, to_string):\n rate = [rate for rate in rates if rate[0] == from_string and rate[1] == to_string][\n 0\n ]\n return rate[2]",
"def click_gli2():\n try:\n led_X = config.get(\"gli2\", \"ir_led_X\")\n led_Y = config.get(\"gli2\", \"ir_led_Y\")\n\n pd_X = config.getint(\"gli2\", \"pd_X\")\n pd_Y = config.getint(\"gli2\", \"pd_Y\")\n except KeyError:\n raise KeyError(\n \"\"\"\nRequires following populated in config.ini:\n\n[gli2]\nir_led_X=\nir_led_Y=\npd_X=\npd_Y=\n\n \"\"\"\n )\n click.echo(\n gli2(\n pd_X,\n pd_Y,\n led_X,\n led_Y,\n unit=get_unit_name(),\n experiment=UNIVERSAL_EXPERIMENT,\n )\n )\n return"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for basic_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/basic_data_rates_2g (identityref)
|
def _set_basic_data_rates_2g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """basic_data_rates_2g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)""",
})
self.__basic_data_rates_2g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def correlationFromBasel2(defaultRate):\n rhoB = 0.12*(1-np.exp(-50*defaultRate))/(1-np.exp(-50))+0.24*(1-(1-np.exp(-50*defaultRate))/(1-np.exp(-50)))\n\n return rhoB",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def _assign_sym2(cmap_ops):\n cmap_ops.phase('assign sym2')\n keycap_chars = tool_utils.parse_int_ranges(\"\"\"\n 0023 # Number Sign\n 002A # Asterisk\n 0030-0039 # Digits\n 20E3 # Combining Enclosing Keycap\"\"\")\n cmap_ops.add_all(keycap_chars, 'SYM2')",
"def basic_convert(rates, from_string, to_string):\n rate = [rate for rate in rates if rate[0] == from_string and rate[1] == to_string][\n 0\n ]\n return rate[2]",
"def OpenFlowLayer2LearningRate(self):\n\t\tfrom ixnetwork_restpy.testplatform.sessions.ixnetwork.quicktest.openflowlayer2learningrate.openflowlayer2learningrate import OpenFlowLayer2LearningRate\n\t\treturn OpenFlowLayer2LearningRate(self)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for supported_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/supported_data_rates_2g (identityref)
|
def _get_supported_data_rates_2g(self):
return self.__supported_data_rates_2g
|
[
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def extract_huawei_2g2g_nbrs(self):\n self.extract_huawei_2g2g_nbrs_internal()\n self.extract_huawei_2g2g_nbrs_external()\n self.extract_huawei_2g2g_nbrs_with_other_vendors()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def sslbe56bitrc2ciphersrate(self) :\n try :\n return self._sslbe56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl40bitrc2ciphersrate(self) :\n try :\n return self._ssl40bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl64bitrc4ciphersrate(self) :\n try :\n return self._ssl64bitrc4ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for supported_data_rates_2g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/supported_data_rates_2g (identityref)
|
def _set_supported_data_rates_2g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """supported_data_rates_2g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-2g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)""",
})
self.__supported_data_rates_2g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def httpcltttfp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def httpcltttlp_2rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_2rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def extract_huawei_2g2g_nbrs(self):\n self.extract_huawei_2g2g_nbrs_internal()\n self.extract_huawei_2g2g_nbrs_external()\n self.extract_huawei_2g2g_nbrs_with_other_vendors()",
"def sslbe56bitrc2ciphersrate(self) :\n try :\n return self._sslbe56bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl40bitrc2ciphersrate(self) :\n try :\n return self._ssl40bitrc2ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def OpenFlowLayer2LearningRate(self):\n\t\tfrom ixnetwork_restpy.testplatform.sessions.ixnetwork.quicktest.openflowlayer2learningrate.openflowlayer2learningrate import OpenFlowLayer2LearningRate\n\t\treturn OpenFlowLayer2LearningRate(self)",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for basic_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/basic_data_rates_5g (identityref)
|
def _get_basic_data_rates_5g(self):
return self.__basic_data_rates_5g
|
[
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def _get_img(self, net_id):\n def fix_strength(val, default):\n \"\"\" Assigns given strength to a default value if needed. \"\"\"\n return val and int(val) or default\n\n def get_prop(prop):\n return wireless.GetWirelessProperty(net_id, prop)\n\n strength = fix_strength(get_prop(\"quality\"), -1)\n dbm_strength = fix_strength(get_prop('strength'), -100)\n\n if daemon.GetWPADriver() == 'ralink legacy' or \\\n daemon.GetSignalDisplayType() == 1:\n if dbm_strength >= -60:\n signal_img = 'signal-100'\n elif dbm_strength >= -70:\n signal_img = 'signal-75'\n elif dbm_strength >= -80:\n signal_img = 'signal-50'\n else:\n signal_img = 'signal-25'\n else:\n if strength > 75:\n signal_img = 'signal-100'\n elif strength > 50:\n signal_img = 'signal-75'\n elif strength > 25:\n signal_img = 'signal-50'\n else:\n signal_img = 'signal-25'\n return signal_img",
"def httpcltttfp_4rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_4rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def orb5min_open(self):\n return self._orb5min_open",
"def orb5min_open(self, orb5min_open):\n\n self._orb5min_open = orb5min_open",
"def IEEE2030_5_http_get(IEEE2030_5_resource_name):\n r = requests.get('{}/dcap/{}'.format(web_address, IEEE2030_5_resource_name))\n assert r.status_code == 200\n return IEEE2030_5Parser.parse(r.text.encode('ascii', 'ignore'))",
"def add_new_rate(rate, rate24k, identity) -> GoldRate:\r\n\t\tuser = User.find_by_gid(gid=identity)\r\n\t\t#get carat id from settings table \"settings -> carat_id\"\r\n\t\tcarat_id = 1\r\n\t\tif user:\r\n\t\t\tg =\tGoldRate(value=rate,value24k=rate24k,carat_id=carat_id,nest_id=user.nest.id)\r\n\t\t\tif g.save_to_db():\r\n\t\t\t\treturn g\r\n\t\treturn None"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for basic_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/basic_data_rates_5g (identityref)
|
def _set_basic_data_rates_5g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """basic_data_rates_5g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="basic-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)""",
})
self.__basic_data_rates_5g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def test_ap_basic_rates(dev, apdev):\n ssid = \"basic rates\"\n params = {}\n params['ssid'] = ssid\n params['basic_rates'] = \"10 20 55 110 60 90 120 180 240 360 480 540\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def _get_basic_data_rates(self):\n return self.__basic_data_rates",
"def orb5min_open(self, orb5min_open):\n\n self._orb5min_open = orb5min_open",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def set_default_exchange_rate(self):\n self.gui.spn_exchange_rate.setValue(\n Decimal(self.ctl.get_parameter_value(5))\n )",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _5(self, _5):\n\n self.__5 = _5",
"def orb5min_close(self, orb5min_close):\n\n self._orb5min_close = orb5min_close"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for supported_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/supported_data_rates_5g (identityref)
|
def _get_supported_data_rates_5g(self):
return self.__supported_data_rates_5g
|
[
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def httpcltttfp_6rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_6rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def sslbe56bitrc4ciphersrate(self) :\n try :\n return self._sslbe56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def ssl56bitrc2ciphersrate(self) :\n try :\n return self._ssl56bitrc2ciphersrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for supported_data_rates_5g, mapped from YANG variable /access_points/access_point/ssids/ssid/state/supported_data_rates_5g (identityref)
|
def _set_supported_data_rates_5g(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={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """supported_data_rates_5g must be of a type compatible with identityref""",
'defined-type': "openconfig-access-points:identityref",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name="supported-data-rates-5g", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)""",
})
self.__supported_data_rates_5g = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_supported_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_5g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_5g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-5g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_5g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"supported-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_supported_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"supported_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"supported-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__supported_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def httpcltttfp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates_2g(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_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates_2g must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-access-points:identityref\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_1MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_2MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_5.5MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_6MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_9MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_11MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_12MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_18MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_24MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_36MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_48MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi-types:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}, 'oc-wifi:RATE_54MB': {'@module': 'openconfig-wifi-types', '@namespace': 'http://openconfig.net/yang/wifi/types'}},)), is_leaf=False, yang_name=\"basic-data-rates-2g\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates_2g = t\n if hasattr(self, '_set'):\n self._set()",
"def _get_supported_data_rates(self):\n return self.__supported_data_rates",
"def httpcltttlp_5rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttlp_5rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def ssl56bitrc4ciphersrate(self) :\n try :\n return self._ssl56bitrc4ciphersrate\n except Exception as e:\n raise e",
"def httpcltttfp_6rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_6rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_basic_data_rates(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"basic_data_rates must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_11MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_12MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_6MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_1MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_54MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_24MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_36MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_9MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_5.5MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_2MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'RATE_48MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:RATE_18MB': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},)), is_leaf=False, yang_name=\"basic-data-rates\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__basic_data_rates = t\n if hasattr(self, '_set'):\n self._set()",
"def sslbemd5macrate(self) :\n try :\n return self._sslbemd5macrate\n except Exception as e:\n raise e",
"def ssl56bitdesciphersrate(self) :\n try :\n return self._ssl56bitdesciphersrate\n except Exception as e:\n raise e",
"def BandwidthPriority5(self):\r\n\t\treturn self._get_attribute('bandwidthPriority5')"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for broadcast_filter, mapped from YANG variable /access_points/access_point/ssids/ssid/state/broadcast_filter (boolean)
|
def _set_broadcast_filter(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="broadcast-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """broadcast_filter must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="broadcast-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__broadcast_filter = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_broadcast_filter(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=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"broadcast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__broadcast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_broadcast_filter(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=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"broadcast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__broadcast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_multicast_filter(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=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"multicast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__multicast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_multicast_filter(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=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"multicast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__multicast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_bpdu_filter(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=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"bpdu_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__bpdu_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def send_broadcast_packet(self, broadcast_packet):\n print(\"Send broadcast message: \" + str(broadcast_packet.get_buf()))\n message = broadcast_packet.get_buf()\n self.stream.broadcast_to_none_registers(message, self.stream.get_server_address())",
"def _make_broadcast_socket(self):\n self.broadcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\n self.broadcast_socket.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST,1)",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def broadcast():\n message = request.form['broadcast_form_message']\n return sockets.broadcast(message)",
"def test_broadcast(self):\n if _debug: TestVLAN._debug(\"test_broadcast\")\n\n # three element network\n tnet = TNetwork(3)\n tnode1, tnode2, tnode3 = tnet.state_machines\n\n # make a broadcast PDU\n pdu = PDU(b'data', source=1, destination=0)\n if _debug: TestVLAN._debug(\" - pdu: %r\", pdu)\n\n # node 1 sends the pdu, node 2 and 3 each get it\n tnode1.start_state.send(pdu).success()\n tnode2.start_state.receive(PDU, pduSource=1).success()\n tnode3.start_state.receive(PDU, pduSource=1).success()\n\n # run the group\n tnet.run()",
"def _is_broadcast(self):\n pass",
"def bloom_filter_conf(self, bloom_filter_conf):\n self._bloom_filter_conf = bloom_filter_conf",
"def setBroadcastStandard(self, bcstd):\n self.bcstd = bcstd\n logger.debug(\"Set broadcast standard: %s\" % bcstd)",
"def test_bluefog_broadcast(self):\n rank = bf.rank()\n size = bf.size()\n\n # This test does not apply if there is only one worker.\n if size == 1:\n return\n\n dtypes = [tf.int32, tf.int64, tf.float32,\n tf.float64, tf.bool]\n dims = [1, 2, 3]\n root_ranks = list(range(size))\n for dtype, dim, root_rank in itertools.product(dtypes, dims, root_ranks):\n tensor = tf.ones([17] * dim) * rank\n root_tensor = tf.ones([17] * dim) * root_rank\n if dtype == tf.bool:\n tensor = tensor % 2\n root_tensor = root_tensor % 2\n tensor = tf.cast(tensor, dtype=dtype)\n root_tensor = tf.cast(root_tensor, dtype=dtype)\n broadcasted_tensor = bf.broadcast(tensor, root_rank)\n self.assertTrue(\n self.evaluate(tf.reduce_all(tf.equal(\n tf.cast(root_tensor, tf.int32), tf.cast(broadcasted_tensor, tf.int32)))),\n \"bf.broadcast produces incorrect broadcasted tensor\")",
"def cluster_device_filters(self) -> tensorflow.core.protobuf.device_filters_pb2.ClusterDeviceFilters:",
"def spatial_filter(self, filter_weights = [1, 2, 1], use_to_data = False):\n\n if self.data.ndim == 3:\n self.data = self.data[:, np.newaxis, :, :]\n\n mask = np.zeros(self.data.shape[-2:])\n filt = np.outer(filter_weights, filter_weights)\n\n mask[:filt.shape[0], :filt.shape[1]] = filt\n\n d = np.zeros((list(self.data.shape[:-2]) + [self.lats.shape[0] - len(filter_weights) + 1, self.lons.shape[0] - len(filter_weights) + 1]))\n\n for i in range(d.shape[-2]):\n for j in range(d.shape[-1]):\n avg_mask = np.array([[mask for _ in range(d.shape[1])] for _ in range(d.shape[0])])\n d[:, :, i, j] = np.average(self.data, axis = (2, 3), weights = avg_mask)\n mask = np.roll(mask, 1, axis = 1)\n # return mask to correct y position\n mask = np.roll(mask, len(filter_weights)-1, axis = 1)\n mask = np.roll(mask, 1, axis = 0)\n\n if use_to_data:\n self.data = np.squeeze(d).copy()\n # space slicing when length of filter is odd -- cut length//2 from the beginning and from the end\n if len(filter_weights) % 2 == 1:\n self.lats = self.lats[len(filter_weights)//2 : -len(filter_weights)//2 + 1]\n self.lons = self.lons[len(filter_weights)//2 : -len(filter_weights)//2 + 1]\n else:\n # space slicing when length of filter is even -- not sure where to cut\n pass\n else:\n return np.squeeze(d)",
"def bloom_filter_conf(self):\n return self._bloom_filter_conf",
"def setFilterable(self, boolean: bool) -> None:\n ...",
"def getBPFilteredFreqSignal(self):\n \n # filtering signalParts\n \n # [...]\n # Filtering stuff\n # [...]\n #filteredSignalParts = numpy.array(...)\n \n # create a new signal object containing the filtered signal result\n filteredSignal = Signal(self.rate, self.size, self.format, self.channel)\n filteredSignal.setTimeSignal(filteredSignalParts)\n \n return filteredSignal"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for multicast_filter, mapped from YANG variable /access_points/access_point/ssids/ssid/state/multicast_filter (boolean)
|
def _set_multicast_filter(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="multicast-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """multicast_filter must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="multicast-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__multicast_filter = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_multicast_filter(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=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"multicast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__multicast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_multicast_filter(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=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"multicast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"multicast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__multicast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_broadcast_filter(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=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"broadcast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__broadcast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_broadcast_filter(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=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"broadcast_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"broadcast-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__broadcast_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def FilterIpV4MulticastVpn(self):\n return self._get_attribute('filterIpV4MulticastVpn')",
"def FilterIpV6MulticastVpn(self):\n return self._get_attribute('filterIpV6MulticastVpn')",
"def FilterIpv6MulticastBgpMplsVpn(self):\n return self._get_attribute('filterIpv6MulticastBgpMplsVpn')",
"def FilterIpv4MulticastBgpMplsVpn(self):\n return self._get_attribute('filterIpv4MulticastBgpMplsVpn')",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def display_is_multicast_error(self):\r\n self._display_error(\"This address seems to be a multicast address. Please try again.\")",
"def test_ipv6network_is_multicast(self):\n n = 10**4\n args = ['1:2:3:4:5:6::/96', 'ff00::/8']\n for arg in args:\n net = ip.IPv6Network(arg)\n time1, result1 = timefn(n, lambda: net.is_multicast)\n enet = eip.IPv6Network(arg)\n time2, result2 = timefn(n, lambda: enet.is_multicast)\n results = (time1, result1), (time2, result2)\n self.report_6n.report(fn_name(), n, results, arg)",
"def test_multicast_mroute_ok(self):\n self.setup_lxc12()\n self.lxc12.cmd_multicast_send(group='239.1.1.1', sport=10000, dport=5000, message='hello')\n result = self.fgt.process(line=\"FGT-B1-1:1 check [mroute] multicast vdom=multicast mroute\\n\")\n self.assertFalse(result)",
"def interface_multicastigmpmemberships(self, site_id, element_id, interface_id, multicastigmpmembership_id=None, tenant_id=None, api_version=\"v2.0\"):\n\n if tenant_id is None and self._parent_class.tenant_id:\n # Pull tenant_id from parent namespace cache.\n tenant_id = self._parent_class.tenant_id\n elif not tenant_id:\n # No value for tenant_id.\n raise TypeError(\"tenant_id is required but not set or cached.\")\n cur_ctlr = self._parent_class.controller\n\n if not multicastigmpmembership_id:\n url = str(cur_ctlr) + \"/{}/api/tenants/{}/sites/{}/elements/{}/interfaces/{}/multicastigmpmemberships\".format(api_version,\n tenant_id,\n site_id,\n element_id,\n interface_id)\n else:\n url = str(cur_ctlr) + \"/{}/api/tenants/{}/sites/{}/elements/{}/interfaces/{}/multicastigmpmemberships/{}\".format(api_version,\n tenant_id,\n site_id,\n element_id,\n interface_id,\n multicastigmpmembership_id)\n\n api_logger.debug(\"URL = %s\", url)\n return self._parent_class.rest_call(url, \"get\")",
"def unicast_responses_to_multicast_broadcasts_blocked(self):\n if \"unicastResponsesToMulticastBroadcastsBlocked\" in self._prop_dict:\n return self._prop_dict[\"unicastResponsesToMulticastBroadcastsBlocked\"]\n else:\n return None",
"def test_ipv6address_is_multicast(self):\n n = 10**6\n addrs = ['1:2:3:4:5:6::', 'ff00::1']\n for a in addrs:\n addr = ip.IPv6Address(a)\n time1, result1 = timefn(n, lambda: addr.is_multicast)\n eaddr = eip.IPv6Address(a)\n time2, result2 = timefn(n, lambda: eaddr.is_multicast)\n results = (time1, result1), (time2, result2)\n self.report_6a.report(fn_name(), n, results, a)",
"def is_multicast(text):\n\n try:\n first = dns.ipv4.inet_aton(text)[0]\n return first >= 224 and first <= 239\n except Exception:\n try:\n first = dns.ipv6.inet_aton(text, True)[0]\n return first == 255\n except Exception:\n raise ValueError",
"def verify_ip(self, multicast_ip):\n\n if len(multicast_ip) < 9 or len(multicast_ip) > 15:\n print(\"Multicast IP address length is incorrect !\")\n\n return False\n\n octets = multicast_ip.split('.')\n\n if len(octets) < 4:\n print(\"Incorrect number of octets in multicast IP address !\")\n\n return False\n\n for idx in range(0, 4):\n\n if not (self.verify_octet(octets[idx])):\n print(\"One of the octets is incorrect !\")\n\n return False\n\n # Check if first octet is from multicast range.\n\n if int(octets[0]) < 224 or int(octets[0]) > 239:\n print(f\"First octet isn’t from multicast range !\"\n f\"Should be 224 … 239 !\")\n\n return False\n\n return True",
"def test_multicast_block_ignores_when_unicast(self):\n self.UUT.checkMulticast = MagicMock()\n self.UUT.checkMulticast.return_value = False\n expected = \"\"\n actual = self.UUT.generateMulticastBlock()\n self.assertEqual(expected, actual)",
"def filter(\n predicate: Callable[[MultiCastItem], bool],\n):\n\n def op_func(source: MultiCast):\n return source.filter(predicate=predicate)\n\n return MultiCastOperator(op_func)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for ipv6_ndp_filter, mapped from YANG variable /access_points/access_point/ssids/ssid/state/ipv6_ndp_filter (boolean)
|
def _set_ipv6_ndp_filter(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="ipv6-ndp-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """ipv6_ndp_filter must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="ipv6-ndp-filter", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__ipv6_ndp_filter = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def FilterIpV6MulticastVpn(self):\n return self._get_attribute('filterIpV6MulticastVpn')",
"def FilterIpv6MulticastBgpMplsVpn(self):\n return self._get_attribute('filterIpv6MulticastBgpMplsVpn')",
"def i_pv6_enabled(self):\n ret = self._get_attr(\"IPv6Enabled\")\n return ret",
"def FilterIpv6UnicastFlowSpec(self):\n return self._get_attribute('filterIpv6UnicastFlowSpec')",
"def ipv6(self, ipv6: SubUnnumberedTop):\n\n self._ipv6 = ipv6",
"def save_nf_filter(nf_filter, subscription_name):\n logger.info(f'Saving nf filter for subscription request: {subscription_name}')\n new_filter = NetworkFunctionFilterModel(subscription_name=subscription_name,\n nf_names=nf_filter['nfNames'],\n model_invariant_ids=nf_filter['modelInvariantIDs'],\n model_version_ids=nf_filter['modelVersionIDs'],\n model_names=nf_filter['modelNames'])\n db.session.add(new_filter)",
"def get_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\treturn response\n\t\texcept Exception as e :\n\t\t\traise e",
"def count_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.count = True\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\tif response :\n\t\t\t\treturn response[0].__dict__['___count']\n\t\t\treturn 0\n\t\texcept Exception as e :\n\t\t\traise e",
"def _set_bpdu_filter(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=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"bpdu_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"bpdu-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__bpdu_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def loopback_ip6(self):\n ret = self._get_attr(\"loopbackIp6\")\n return ret",
"def enable_static_ip_config_v6(self, ipv6_address, ipv6_network_mask_prefix_length):\n if not isinstance(ipv6_address, basestring):\n raise TypeError(\"ipv6_address can only be an instance of type basestring\")\n if not isinstance(ipv6_network_mask_prefix_length, baseinteger):\n raise TypeError(\"ipv6_network_mask_prefix_length can only be an instance of type baseinteger\")\n self._call(\"enableStaticIPConfigV6\",\n in_p=[ipv6_address, ipv6_network_mask_prefix_length])",
"def streamingbypass_ipv6_set(ipv6_addrs: str):\n return _run_speedify_cmd([\"streamingbypass\", \"ipv6\", \"set\", ipv6_addrs])",
"def test_resolveOnlyIPv6(self):\n self._resolveOnlyTest([IPv6Address], AF_INET6)",
"def ipv6_netmask(self, ipv6_netmask):\n if ipv6_netmask is not None and len(ipv6_netmask) > 43:\n raise ValueError(\"Invalid value for `ipv6_netmask`, length must be less than or equal to `43`\") # noqa: E501\n if ipv6_netmask is not None and len(ipv6_netmask) < 6:\n raise ValueError(\"Invalid value for `ipv6_netmask`, length must be greater than or equal to `6`\") # noqa: E501\n\n self._ipv6_netmask = ipv6_netmask",
"def host_ip_v6(self, host_ip_v6):\n\n self._host_ip_v6 = host_ip_v6",
"def test_ipv6address_ne_(self):\n n = 10**6\n data = [\n ('::4', '::4'),\n ('::4', '::3'),\n ('::4', '::5'),\n ]\n for a1, a2 in data:\n addr1 = ip.IPv6Address(a1)\n addr2 = ip.IPv6Address(a2)\n time1, result1 = timefn(n, addr1.__ne__, addr2)\n eaddr1 = eip.IPv6Address(a1)\n eaddr2 = eip.IPv6Address(a2)\n time2, result2 = timefn(n, eaddr1.__ne__, eaddr2)\n results = (time1, result1), (time2, result2)\n self.report_6a.report(fn_name(), n, results, (addr1, addr2))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for ipv6_ndp_filter_timer, mapped from YANG variable /access_points/access_point/ssids/ssid/state/ipv6_ndp_filter_timer (uint16)
|
def _set_ipv6_ndp_filter_timer(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="ipv6-ndp-filter-timer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """ipv6_ndp_filter_timer must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="ipv6-ndp-filter-timer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__ipv6_ndp_filter_timer = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter_timer(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..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter_timer must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ipv6-ndp-filter-timer\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter_timer = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ipv6_ndp_filter(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=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ipv6_ndp_filter must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"ipv6-ndp-filter\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__ipv6_ndp_filter = t\n if hasattr(self, '_set'):\n self._set()",
"def counts_udp_icmpv6(self):\n self.icmpv6_number = 0\n self.udp_number = 0\n for packet in self.filtered_list:\n if (58,'ICMPv6') in packet[4]:\n self.icmpv6_number += 1\n if (17,'UDP') in packet[4]:\n self.udp_number += 1",
"def FilterIpV6MulticastVpn(self):\n return self._get_attribute('filterIpV6MulticastVpn')",
"def count_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.count = True\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\tif response :\n\t\t\t\treturn response[0].__dict__['___count']\n\t\t\treturn 0\n\t\texcept Exception as e :\n\t\t\traise e",
"def test_ipv6interface_int(self):\n n = 10**6\n addr = ip.IPv6Interface('1:2:3:4:5:6::')\n time1, result1 = timefn(n, addr.__int__)\n eaddr = eip.IPv6Interface('1:2:3:4:5:6::')\n time2, result2 = timefn(n, eaddr.__int__)\n results = (time1, result1), (time2, result2)\n self.report_6i.report(fn_name(), n, results, addr)",
"def test_ipv6interface_ip(self):\n n = 10**5\n a = '2000:3456::/40'\n addr = ip.IPv6Interface(a)\n time1, result1 = timefn(n, lambda: addr.ip)\n eaddr = eip.IPv6Interface(a)\n time2, result2 = timefn(n, lambda: eaddr.ip)\n results = (time1, result1), (time2, result2)\n self.report_6i.report(fn_name(), n, results, a)",
"def get_ip6_nd_rx_requests(self, itf):\n return self.statistics[\"/net/ip6-nd/rx/requests\"][:, itf.sw_if_index].sum()",
"def decode_ip6(pkt):\n ip6 = {}\n\n (ip6[\"ip6_label\"],\n ip6[\"ip6_length\"],\n ip6[\"ip6_nh\"],\n ip6[\"ip6_hop_limit\"],\n ip6[\"ip6_source_raw\"],\n ip6[\"ip6_destination_raw\"]) = struct.unpack(\n \">LHBB16s16s\", pkt[0:IP6_HDR_LEN])\n\n ip6[\"ip6_version\"] = ip6[\"ip6_label\"] >> 28\n ip6[\"ip6_class\"] = (ip6[\"ip6_label\"] >> 20) & 0xff\n ip6[\"ip6_label\"] = ip6[\"ip6_label\"] & 0xfffff\n ip6[\"ip6_source\"] = util.decode_inet_addr(ip6[\"ip6_source_raw\"])\n ip6[\"ip6_destination\"] = util.decode_inet_addr(ip6[\"ip6_destination_raw\"])\n\n offset = IP6_HDR_LEN\n\n # Skip over known extension headers.\n while True:\n if ip6[\"ip6_nh\"] in IP6_EXT_HEADER_TYPES:\n ip6[\"ip6_nh\"], ext_len = struct.unpack(\">BB\", pkt[offset:offset+2])\n offset += 8 + (ext_len * 8)\n else:\n break\n\n if ip6[\"ip6_nh\"] == IPPROTO_UDP:\n ip6.update(decode_udp(pkt[offset:]))\n elif ip6[\"ip6_nh\"] == IPPROTO_TCP:\n ip6.update(decode_tcp(pkt[offset:]))\n elif ip6[\"ip6_nh\"] == IPPROTO_ICMPV6:\n ip6.update(decode_icmp6(pkt[offset:]))\n\n return ip6",
"def test_ipv6interface_ne_(self):\n n = 10**5\n data = [\n ('::4/96', '::4/96'),\n ('::4/96', '::3/96'),\n ('::4/96', '::5/96'),\n ('::4/96', '::4/93'),\n ('::4/96', '::4/97'),\n ]\n for a1, a2 in data:\n addr1 = ip.IPv6Interface(a1)\n addr2 = ip.IPv6Interface(a2)\n time1, result1 = timefn(n, addr1.__ne__, addr2)\n eaddr1 = eip.IPv6Interface(a1)\n eaddr2 = eip.IPv6Interface(a2)\n time2, result2 = timefn(n, eaddr1.__ne__, eaddr2)\n results = (time1, result1), (time2, result2)\n self.report_6i.report(fn_name(), n, results, (addr1, addr2))",
"def ipv6icmpnstxrate(self) :\n try :\n return self._ipv6icmpnstxrate\n except Exception as e:\n raise e",
"def FilterIpv6MulticastBgpMplsVpn(self):\n return self._get_attribute('filterIpv6MulticastBgpMplsVpn')",
"def test_ipv6address_int(self):\n n = 10**6\n addr = ip.IPv6Address('1:2:3:4:5:6::')\n time1, result1 = timefn(n, addr.__int__)\n eaddr = eip.IPv6Address('1:2:3:4:5:6::')\n time2, result2 = timefn(n, eaddr.__int__)\n results = (time1, result1), (time2, result2)\n self.report_6a.report(fn_name(), n, results, addr)",
"def test_ipv6address_ne_(self):\n n = 10**6\n data = [\n ('::4', '::4'),\n ('::4', '::3'),\n ('::4', '::5'),\n ]\n for a1, a2 in data:\n addr1 = ip.IPv6Address(a1)\n addr2 = ip.IPv6Address(a2)\n time1, result1 = timefn(n, addr1.__ne__, addr2)\n eaddr1 = eip.IPv6Address(a1)\n eaddr2 = eip.IPv6Address(a2)\n time2, result2 = timefn(n, eaddr1.__ne__, eaddr2)\n results = (time1, result1), (time2, result2)\n self.report_6a.report(fn_name(), n, results, (addr1, addr2))",
"def ipv6icmpnsrxrate(self) :\n try :\n return self._ipv6icmpnsrxrate\n except Exception as e:\n raise e",
"def get_ip6_nd_rx_replies(self, itf):\n return self.statistics[\"/net/ip6-nd/rx/replies\"][:, itf.sw_if_index].sum()",
"def ipv6icmpnatxrate(self) :\n try :\n return self._ipv6icmpnatxrate\n except Exception as e:\n raise e",
"def get_filtered(cls, client, filter_) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.filter = filter_\n\t\t\tresponse = obj.getfiltered(client, option_)\n\t\t\treturn response\n\t\texcept Exception as e :\n\t\t\traise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for station_isolation, mapped from YANG variable /access_points/access_point/ssids/ssid/state/station_isolation (boolean)
|
def _set_station_isolation(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="station-isolation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """station_isolation must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="station-isolation", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__station_isolation = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def enable_network_isolation(self):\n return False if not self._enable_network_isolation else self._enable_network_isolation",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def excluded_tv_stations(self, excluded_tv_stations):\n\n self._excluded_tv_stations = excluded_tv_stations",
"def is_stationary(self):\n ...",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def create_station(station_id, station_name,elevation, forecast_office_id,obs_url):\r\n\r\n station = Station(station_id = station_id, station_name = station_name,\r\n elevation = elevation, forecast_office_id = forecast_office_id,\r\n observation_url = obs_url)\r\n\r\n db.session.add(station)\r\n db.session.commit()\r\n\r\n return station",
"def has_station(event: str, station: str):\n return station in get_catalog()[event]",
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def user32_SetProcessWindowStation(jitter):\n ret_ad, args = jitter.func_args_stdcall([\"hWinSta\"])\n raise RuntimeError('API not implemented')\n jitter.func_ret_stdcall(ret_ad, ret_value)",
"def set_standby(self):\n bytes_to_write = self._to_byte_array((Commands.TOGGLE_STATE_COMMAND, Commands.STANDBY))\n Controller._write_bytes(bytes_to_write)",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def get_stn_column(self):\n return self._obj[a._obj.attrs[\"STATIONS\"]]",
"def doeselevationexist(station_number, contract_name):\n count = sqlModels.StationElevation.select().where(sqlModels.StationElevation.station_number == station_number, sqlModels.StationElevation.contract_name == contract_name).count()\n return count >= 1",
"def _set_band_steering(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"band_steering must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__band_steering = t\n if hasattr(self, '_set'):\n self._set()",
"def isolate(self, timeout=None):\n self.network_isolation_enabled = True\n self.save()\n\n start_time = time.time()\n\n while not self.is_isolating:\n if timeout and time.time() - start_time > timeout:\n raise TimeoutError(message=\"timed out waiting for isolation to become active\")\n time.sleep(1)\n self.refresh()\n\n return True",
"def is_stopping(self, sdi_id: str) -> Optional[bool]:\n response = self.get_status(sdi_id)\n if response.ok:\n return str(response.detail[\"state\"]) == \"3\"\n return None",
"def state_senator_district_etl():\r\n with arcetl.ArcETL(\"State Senator Districts\") as etl:\r\n etl.extract(dataset.STATE_SENATOR_DISTRICT.path(\"maint\"))\r\n etl.transform(\r\n arcetl.features.dissolve,\r\n dissolve_field_names=dataset.STATE_SENATOR_DISTRICT.field_names,\r\n tolerance=TOLERANCE[\"xy\"],\r\n )\r\n etl.load(dataset.STATE_SENATOR_DISTRICT.path(\"pub\"))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for opmode, mapped from YANG variable /access_points/access_point/ssids/ssid/state/opmode (enumeration)
|
def _set_opmode(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={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type("OPEN"), is_leaf=True, yang_name="opmode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """opmode must be of a type compatible with enumeration""",
'defined-type': "openconfig-access-points:enumeration",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type("OPEN"), is_leaf=True, yang_name="opmode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)""",
})
self.__opmode = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_opmode(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'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_opmode(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={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-access-points:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'OPEN': {}, 'WPA2_PERSONAL': {}, 'WPA2_ENTERPRISE': {}},), default=six.text_type(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_opmode(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'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"opmode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'WPA2_ENTERPRISE': {}, u'WPA2_PERSONAL': {}, u'OPEN': {}},), default=unicode(\"OPEN\"), is_leaf=True, yang_name=\"opmode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__opmode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_operation_mode(self, operation_mode: str) -> None:\n raise NotImplementedError()",
"def set_operating_mode(self, channel, mode):\n self.logger.debug('Set operating mode: {}'.format(mode))\n self.query(\"L{}I{}\".format(channel, self.MODES[mode]))",
"def GetOperationalMode(self, iwconfig):\n return misc.to_unicode(self.wifi.GetOperationalMode(iwconfig))",
"def set_mode(self, mode):\n self.mode = mode\n if mode == \"train\" or mode is True:\n self.models.train()\n elif mode in [\"val\", \"test\", \"eval\"] or mode is False:\n self.models.eval()\n else:\n raise ValueError(f\"Invalid model mode `{mode}`!\")",
"def mode(self, mode):\n # type: (SrtMode) -> None\n\n if mode is not None:\n if not isinstance(mode, SrtMode):\n raise TypeError(\"Invalid type for `mode`, type has to be `SrtMode`\")\n\n self._mode = mode",
"def set_mode(self, mode):\n self._mode = mode",
"async def async_set_operation_mode(self, operation_mode):\n mode = self._state_to_pizone[operation_mode]\n await self._wrap_and_catch(self._controller.set_mode(mode))",
"def _set_connection_mode(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'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__connection_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_mode(mode):\n master = mavutil.mavlink_connection('udpin:0.0.0.0:14550')\n master.wait_heartbeat()\n\n mode_id = master.mode_mapping()[mode]\n master.mav.set_mode_send(\n master.target_system,\n mavutil.mavlink.MAV_MODE_FLAG_CUSTOM_MODE_ENABLED,\n mode_id)\n print(\"Mode \" + mode + \" successfully set.\")\n return True",
"def set_mode(self, mode: OutputMode | None) -> None:\n if mode is None:\n lib.wlr_output_set_mode(self._ptr, ffi.NULL)\n else:\n lib.wlr_output_set_mode(self._ptr, mode._ptr)",
"def map_mode(self, mode):\n\n if (mode in self.mode_map):\n return self.mode_map[mode]\n else:\n print(\"Invalid mode \\\"%s\\\"\" % mode)\n raise LookupError",
"def _set_connection_mode(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={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-access-points:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__connection_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def change_mode(mode_name: str):\n global mode, previous_mode\n previous_mode = mode\n if mode_name == 'editing':\n mode = 'editing'\n elif mode_name == 'playing':\n mode = 'playing'\n elif mode_name == 'level_selection':\n mode = 'level_selection'",
"def operation_modes(self) -> List[str]:\n modes: List[str] = []\n\n conf_dev = self._device_conf\n if conf_dev.get(\"hascoolonly\", 0) != 1:\n modes.append(OPERATION_MODE_HEAT)\n\n if conf_dev.get(\"hasdrymode\", 0) == 1:\n modes.append(OPERATION_MODE_DRY)\n\n modes.append(OPERATION_MODE_COOL)\n modes.append(OPERATION_MODE_FAN_ONLY)\n\n if conf_dev.get(\"hasautomode\", 0) == 1:\n modes.append(OPERATION_MODE_HEAT_COOL)\n\n return modes"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dva, mapped from YANG variable /access_points/access_point/ssids/ssid/state/dva (boolean)
|
def _set_dva(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dva", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dva must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dva", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dva = t
if hasattr(self, '_set'):
self._set()
|
[
"def densityvap(salt=None,temp=None,pres=None,dliq=None,dvap=None,\n chkvals=False,chktol=_CHKTOL,salt0=None,temp0=None,pres0=None,\n dliq0=None,dvap0=None,chkbnd=False,useext=False,mathargs=None):\n salt, temp, pres, dliq, dvap = eq_stp(salt=salt,temp=temp,pres=pres,\n dliq=dliq,dvap=dvap,chkvals=chkvals,chktol=chktol,salt0=salt0,\n temp0=temp0,pres0=pres0,dliq0=dliq0,dvap0=dvap0,chkbnd=chkbnd,\n useext=useext,mathargs=mathargs)\n return dvap",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def di_dv(self, v: float) -> float:\n raise NotImplementedError",
"def ddeta(\n self,\n varname,\n hcoord=None,\n scoord=None,\n hboundary=\"extend\",\n hfill_value=None,\n sboundary=\"extend\",\n sfill_value=None,\n attrs=None,\n ):\n\n assert isinstance(\n varname, str\n ), \"varname should be a string of the name of a variable stored in the Dataset\"\n assert varname in self.ds, 'variable called \"varname\" must be in Dataset'\n var = xroms.ddeta(\n self.ds[varname],\n self.grid,\n hcoord=hcoord,\n scoord=scoord,\n hboundary=hboundary,\n hfill_value=hfill_value,\n sboundary=sboundary,\n sfill_value=sfill_value,\n attrs=attrs,\n )\n\n self._ds[var.name] = var\n return self._ds[var.name]",
"def set_dtr(self, value, *args, **kwargs):\n with self.change_connection():\n self.connection.dtr = bool(value)",
"def is_pds_state(self, *args):\n return _wali.WPDS_is_pds_state(self, *args)",
"def dvdz(self):\n\n if \"dvdz\" not in self.ds:\n var = xroms.dvdz(self.ds.v, self.grid, sboundary=\"extend\")\n self.ds[\"dvdz\"] = var\n return self.ds[\"dvdz\"]",
"def HasDPA(self):\n return self.__has('DPA')",
"def vdus(self, vdus):\n if vdus is None:\n raise ValueError(\"Invalid value for `vdus`, must not be `None`\")\n\n self._vdus = vdus",
"def show_dvm (self, dvm_name, force=0): \n debug (\"In MayaVi::show_dvm ()\")\n if not dvm_name:\n return\n if (self.cur_dvm_name != dvm_name) or (not self.cur_dvm_name) \\\n or force:\n if self.cur_dvm_name:\n old_dvm = self.data_viz_mgr[self.cur_dvm_name]\n old_dvm.close_gui ()\n self.cur_dvm_name = dvm_name\n dvm = self.data_viz_mgr[self.cur_dvm_name]\n self.gui.create_dvm_gui(dvm)",
"def addBool(self, ln, dv = 0):\n \n cmds.addAttr( ln = ln, at = 'bool', dv = dv)",
"def ds_factory_enabled(self, ds_factory_enabled: ConfigNodePropertyBoolean):\n\n self._ds_factory_enabled = ds_factory_enabled",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def test_total_dv_sensitivities(self):\n # Make sure vecs are initialized to zero\n self.zero_tacs_vecs()\n\n # Initial solve\n func_vals = self.run_solve()\n\n # Compute the total derivative w.r.t. material design variables using adjoint\n self.run_adjoints()\n self.assembler.addDVSens(self.func_list, self.dfddv_list, 1.0)\n self.assembler.addAdjointResProducts(\n self.adjoint_list, self.dfddv_list, -1.0\n )\n # Accumulate sensitivity across all procs\n self.set_tacs_vec_values(self.dfddv_list)\n\n # Compute the total derivative w.r.t. material design variables using fd/cs\n self.perturb_tacs_vec(self.dv1, self.dv0, self.dv_pert)\n # Run perturbed solution\n func_vals_pert = self.run_solve(dv=self.dv1)\n # Compute approximate sens\n fdv_sens_approx = self.compute_fdcs_approx(func_vals_pert, func_vals)\n\n # Tests cs/fd against sensitivity from adjoint\n for i in range(len(self.func_list)):\n with self.subTest(function=self.func_list[i]):\n dfddv_proj_i = self.dfddv_list[i].dot(self.dv_pert)\n np.testing.assert_allclose(\n dfddv_proj_i, fdv_sens_approx[i], rtol=self.rtol, atol=self.atol\n )",
"def enable_di(self, value):\n self._set_property('enable_di', value)",
"def setBool(self, value: 'SbBool') -> \"void\":\n return _coin.ScXMLBoolDataObj_setBool(self, value)",
"def _set_student_has_voted(self) -> None:\r\n self._has_voted = True\r\n VSD.set_student_as_voted(self._position)",
"def set(self, v: 'vnl_vectorD') -> \"vnl_diag_matrixD &\":\n return _vnl_diag_matrixPython.vnl_diag_matrixD_set(self, v)",
"def is_vertex(self) -> \"bool\":\n return self._value.getType() == Value.VVAL"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dhcp_required, mapped from YANG variable /access_points/access_point/ssids/ssid/state/dhcp_required (boolean)
|
def _set_dhcp_required(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dhcp-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dhcp_required must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dhcp-required", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dhcp_required = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dhcp_required(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=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dhcp_required must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dhcp_required = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dhcp_required(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=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dhcp_required must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dhcp-required\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dhcp_required = t\n if hasattr(self, '_set'):\n self._set()",
"def enable_dhcp(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_dhcp\")",
"def need_dhcp_server(self):\n ret = self._get_attr(\"needDhcpServer\")\n return ret",
"def dhcp_enabled(self):\n ret = self._get_attr(\"DHCPEnabled\")\n return ret",
"def _vmware_dhcp_ip_config(self, args: parser_extensions.Namespace):\n kwargs = {\n 'enabled': flags.Get(args, 'enable_dhcp'),\n }\n if flags.IsSet(kwargs):\n return messages.VmwareDhcpIpConfig(**kwargs)\n return None",
"def enable_dhcp(self, ip_host_num):\n return [\"ip-host %s dhcp-enable true ping-response true traceroute-response true\" % ip_host_num]",
"def enableDHCPClick():\n os.system(\"mount -o rw,remount /\")\n os.system(\"cp netctl/ethernet-dhcp /etc/netctl/eth0\")\n os.system(\"mount -o ro,remount /\")\n lcdPrint(\"Obtaining IP...\")\n lcd.setCursor(15,0)\n lcd.ToggleBlink()\n os.system(\"ip link set eth0 down\")\n os.system(\"netctl restart eth0\")\n ip = socket.gethostbyname(socket.getfqdn())\n lcd.ToggleBlink()\n lcdPrint(\"Enabled DHCP:\\n\"+ip, 2)",
"def attach_required(self, value: bool):\n self._properties[\"attachRequired\"] = value",
"async def begin_create_dhcp(\n self,\n resource_group_name: str,\n private_cloud_name: str,\n dhcp_id: str,\n workload_network_dhcp: _models.WorkloadNetworkDhcp,\n *,\n content_type: str = \"application/json\",\n **kwargs: Any\n ) -> AsyncLROPoller[_models.WorkloadNetworkDhcp]:",
"async def begin_create_dhcp(\n self,\n resource_group_name: str,\n private_cloud_name: str,\n dhcp_id: str,\n workload_network_dhcp: IO,\n *,\n content_type: str = \"application/json\",\n **kwargs: Any\n ) -> AsyncLROPoller[_models.WorkloadNetworkDhcp]:",
"def _set_ethernet_pmd_preconf(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={'oc-opt-types:ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}},), is_leaf=True, yang_name=\"ethernet-pmd-preconf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ethernet_pmd_preconf must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-platform-transceiver:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'oc-opt-types:ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_4X10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ER': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_LRM': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_PSM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_AOC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_SR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_40GBASE_ER4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100G_ACC': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_100GBASE_CWDM4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_40GBASE_LR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_SR10': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'oc-opt-types:ETH_10GBASE_ZR': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_UNDEFINED': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}, 'ETH_100GBASE_CLR4': {'@namespace': 'http://openconfig.net/yang/transport-types', '@module': 'openconfig-transport-types'}},), is_leaf=True, yang_name=\"ethernet-pmd-preconf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__ethernet_pmd_preconf = t\n if hasattr(self, '_set'):\n self._set()",
"def create_dhcp_options(DryRun=None, DhcpConfigurations=None):\n pass",
"def setRequired(self, required):\n self.__isRequired = required",
"def fpolicy_set_required(self, policy_name, required):\n return self.request( \"fpolicy-set-required\", {\n 'policy_name': [ policy_name, 'policy-name', [ basestring, 'None' ], False ],\n 'required': [ required, 'required', [ bool, 'None' ], False ],\n }, {\n } )",
"def configure_dhcp():\n dhcp_config = {}\n dhcp_config_content = \"\"\"\nddns-update-style none;\ndefault-lease-time 600;\nmax-lease-time 7200;\noption domain-name-servers 84.200.69.80, 84.200.70.40;\noption domain-name \"pikube.local\";\nauthorative;\nlog-facility local7;\n\nsubnet 10.12.29.0 netmask 255.255.255.0 {\n range 10.12.29.10 10.12.29.100;\n}\n\"\"\"\n\n dhcp_config['path'] = r'/etc/dhcp/dhcpd.conf'\n dhcp_config['encoding'] = \"b64\"\n dhcp_config['content'] = base64.b64encode(\n bytes(dhcp_config_content, \"utf-8\"))\n return dhcp_config",
"def attach_required(self) -> bool:\n return typing.cast(\n bool,\n self._properties.get(\"attachRequired\"),\n )",
"def _is_disk_checking_required(cls, node):\n if node.status in ('ready', 'deploying', 'provisioned') or \\\n (node.status == 'error' and node.error_type != 'provision'):\n return False\n\n return True",
"def set_require_confirmed_shipping( self, required ):\n\n req = '1' if required else '0'\n self._nvp_request['REQCONFIRMSHIPPING'] = req",
"def set_dhcp_server(self, config):\n self.navigate_to(self.CONFIGURE, self.CONFIGURE_SYSTEM, 2)\n if not self.s.is_element_present(self.info['loc_cfg_system_dhcps_fieldset']):\n raise Exception('The DHCP Server configurate field is invisible')\n\n else:\n enable_checkbox = self.info['loc_cfg_system_dhcps_enable_checkbox']\n enable_server = False if not config.has_key('enable') else config['enable']\n\n if not enable_server:\n # Uncheck the enable DHCPs server checkbox\n if self.s.is_checked(enable_checkbox):\n self.s.click_and_wait(enable_checkbox)\n\n # Click apply button\n self.s.click_and_wait(self.info['loc_cfg_system_dhcps_apply_button'], 3)\n\n return\n\n # Check the enable DHCPs server checkbox\n if not self.s.is_checked(enable_checkbox):\n self.s.click_and_wait(enable_checkbox)\n\n # Set starting ip value\n if config.has_key('start_ip'):\n self.s.type_text(self.info['loc_cfg_system_dhcps_starting_ip_textbox'], config['start_ip'])\n\n # Set ip range value\n if config.has_key('number_ip'):\n self.s.type_text(self.info['loc_cfg_system_dhcps_number_ip_textbox'], str(config['number_ip']))\n\n # Set lease time value\n if config.has_key('leasetime'):\n self.s.select_option(self.info['loc_cfg_system_dhcps_leasetime_options'], config['leasetime'])\n\n # Click 'Cancel' on the confirmation dialog to ZD do nothing if not ZD will auto correct the setting value.\n self.s.choose_cancel_on_next_confirmation()\n # Click apply button\n self.s.click_and_wait(self.info['loc_cfg_system_dhcps_apply_button'], 3)\n msg = ''\n # The ZD will be genarate an alert or an confirm dialog if there are any invalid or wrong setting value is setted.\n # Get any exist alert message\n if self.s.is_alert_present(5):\n msg = self.s.get_alert()\n\n # Get any confirmation message\n elif self.s.is_confirmation_present(5):\n msg = self.s.get_confirmation()\n\n if msg:\n raise Exception(msg)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for qbss_load, mapped from YANG variable /access_points/access_point/ssids/ssid/state/qbss_load (boolean)
|
def _set_qbss_load(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="qbss-load", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """qbss_load must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="qbss-load", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__qbss_load = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def load_baseline(self) -> bool:\n\n if 'sw-versipon' not in self.facts:\n raise LoaderException('Could not determine sw-version to load baseline configuration!')\n\n version = self.facts['sw-version']\n if '8.0' in version:\n # load the 8.0 baseline with\n pass\n elif '8.1' in version:\n # load the 8.1 baseline with\n pass\n elif '9.0' in version:\n # load the 9.0 baseline with\n pass\n else:\n print('Could not determine sw-version for baseline load')\n return False\n\n return True",
"def HasqSGA(self):\n return self.__has('qSGA')",
"def import_bss():\n # note this does not load column 7\n data = np.loadtxt('/Users/RAhmed/Astro_MOOC/Week02/bss.dat', usecols=range(1, 7))\n\n # empty output list\n output = []\n\n # iterate over data and convert inputs as needed\n for index, row in enumerate(data, 1):\n output.append((index, hms2dec(row[0], row[1], row[2]), dms2dec(row[3], row[4], row[5])))\n\n return output",
"def HasqSVA(self):\n return self.__has('qSVA')",
"def _get_bssids(self):\n return self.__bssids",
"def HasqSSA(self):\n return self.__has('qSSA')",
"def HasqSSL(self):\n return self.__has('qSSL')",
"def HasqSPA(self):\n return self.__has('qSPA')",
"def force_load_to_memory(self) -> bool:\n if not self.is_in_memory:\n try:\n self.__load_local()\n except DofError:\n pass\n if not self.is_in_memory:\n try:\n self.__load_online()\n except DofError:\n pass\n return self.is_in_memory",
"def HasKSB(self):\n return self.__has('KSB')",
"def HasqVLS(self):\n return self.__has('qVLS')",
"def HasqKLS(self):\n return self.__has('qKLS')",
"def HasqSSN(self):\n return self.__has('qSSN')",
"def set_opt_state(self, opt_state: Dict[str, Dict[str, nn.Parameter]]) -> None:\n self.optimizer.load_state_dict(opt_state[\"optimizer\"])\n self.lr_scheduler.load_state_dict(opt_state[\"lr_scheduler\"])",
"def load_psalqc(self):\n rejectval = self.config.getint('profiles', 'qcreject')\n self.psalqc = self.read_var(self.psalqcvar)\n self.psalqc = self.psalqc.astype('unicode')\n self.psalqc[np.where(self.psalqc=='1')]= 1\n self.psalqc[np.logical_or(self.psalqc=='4', self.psalqc == '0')]= 0\n self.psalqc = self.psalqc.astype(bool)\n self.test_shape(self.psalqcvar, self.psalqc.shape, 2)",
"def _load_if_should(self) -> bool:\n if self._should_load():\n return self._load()\n return False",
"def HasqSTA(self):\n return self.__has('qSTA')"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for advertise_apname, mapped from YANG variable /access_points/access_point/ssids/ssid/state/advertise_apname (boolean)
|
def _set_advertise_apname(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="advertise-apname", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """advertise_apname must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="advertise-apname", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__advertise_apname = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_advertise_apname(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=\"advertise-apname\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"advertise_apname must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"advertise-apname\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__advertise_apname = t\n if hasattr(self, '_set'):\n self._set()",
"def set_ap(self):\n apo = self.sel_access_point()\n if apo:\n self.apo = apo\n return True\n else:\n return False",
"def enable_ap(uio):\n ap_name = uio.get(b'AP_NAME')\n ap_pass = uio.get(b'AP_PASS')\n\n form = [\n [uio.HEAD, 0, \"Enable AP\"],\n [uio.TEXT, 2, 0, \"Ap Name:\"],\n [uio.STR, 3, 0, 16, ap_name],\n [uio.TEXT, 5, 0, \"Password:\"],\n [uio.STR, 6, 0, 16, ap_pass],\n ]\n\n result = uio.form(form)\n if result:\n ap_name = form[2][uio.VAL]\n ap_pass = form[4][uio.VAL]\n sta_ap = network.WLAN(network.AP_IF)\n if sta_ap.active():\n sta_ap.active(False)\n sta_ap.active(True)\n if not ap_pass.strip():\n sta_ap.config(\n essid=ap_name.encode(),\n password=ap_pass.encode(),\n authmode=network.AUTH_WPA_WPA2_PSK)\n uio.put(b'AP_NAME', ap_name)\n uio.put(b'AP_PASS', ap_pass)\n else:\n sta_ap.config(essid=ap_name, authmode=network.AUTH_OPEN)\n uio.put(b'AP_NAME', ap_name)\n\n uio.fill(uio.background)\n uio.center(\"Access Point\", 1)\n if sta_ap.active():\n uio.put(ap_name, ap_pass)\n uio.center(\"Enabled\", 2)\n ifconfig = sta_ap.ifconfig()\n uio.center(\"IP Address:\", 4)\n uio.center(ifconfig[0], 5)\n else:\n uio.center(\"Failed\", 2)\n sta_ap.active(False)\n\n uio.wait(\"Press to Continue\", 7)",
"def ami_name(self, ami_name):\n if ami_name is None:\n raise ValueError(\"Invalid value for `ami_name`, must not be `None`\")\n\n self._ami_name = ami_name",
"def applicant_name(self, applicant_name):\n self._applicant_name = applicant_name",
"def set_aa(self, b):\n _ldns.ldns_pkt_set_aa(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def create_ap_list(adapter, active_connections):\n aps = []\n ap_names = []\n active_ap = adapter.get_active_access_point()\n aps_all = sorted(adapter.get_access_points(),\n key=lambda a: a.get_strength(), reverse=True)\n conns_cur = [i for i in CONNS if\n i.get_setting_wireless() is not None and\n i.get_setting_wireless().get_mac_address() ==\n adapter.get_permanent_hw_address()]\n try:\n ap_conns = active_ap.filter_connections(conns_cur)\n active_ap_name = ssid_to_utf8(active_ap)\n active_ap_con = [active_conn for active_conn in active_connections\n if active_conn.get_connection() in ap_conns]\n except AttributeError:\n active_ap_name = None\n active_ap_con = []\n if len(active_ap_con) > 1:\n raise ValueError(\"Multiple connection profiles match\"\n \" the wireless AP\")\n active_ap_con = active_ap_con[0] if active_ap_con else None\n for nm_ap in aps_all:\n ap_name = ssid_to_utf8(nm_ap)\n if nm_ap != active_ap and ap_name == active_ap_name:\n # Skip adding AP if it's not active but same name as active AP\n continue\n if ap_name not in ap_names:\n ap_names.append(ap_name)\n aps.append(nm_ap)\n return aps, active_ap, active_ap_con",
"def get_apartment_name(self, soup, apartment_dict):\n\n apartment_name_tag = soup.find(class_='pageTitle')\n title = apartment_name_tag.text.strip()\n apartment_dict['name'] = title",
"def SetShouldVerifyAp(self, value):\n self.config.set(\"Settings\", \"should_verify_ap\", int(value), write=True)\n self.wifi.should_verify_ap = misc.to_bool(value)",
"def setAllowAbbreviations(self, aFlag = 1):\n self.allowAbbreviations = aFlag",
"def set_active_ap_if(active=True):\n ap_if = network.WLAN(network.AP_IF)\n if ap_if.active() != active:\n ap_if.active(active)",
"def bookmarks_name(self, bookmarks_name):\n if self.local_vars_configuration.client_side_validation and bookmarks_name is None: # noqa: E501\n raise ValueError(\"Invalid value for `bookmarks_name`, must not be `None`\") # noqa: E501\n\n self._bookmarks_name = bookmarks_name",
"def setAP(wifi, ap):\n try:\n wifi.setAPaddr(ap)\n except Exception, detail:\n # Unexpected errors\n print type(detail), detail",
"def aa(self):\n return _ldns.ldns_pkt_aa(self)\n #parameters: const ldns_pkt *,\n #retvals: bool",
"def set_ad(self, b):\n _ldns.ldns_pkt_set_ad(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def send_ip_addr_adv_notif(iface_name, address, config):\n count = config.send_arp_for_ha\n\n def arping():\n _arping(iface_name, address, count)\n\n if count > 0 and netaddr.IPAddress(address).version == 4:\n eventlet.spawn_n(arping)",
"def set_is_env_name(self, name: str, enabled: bool) -> bool:\n instance = self.get_by_name(name=name)\n self._update_attrs(\n node_id=instance[\"id\"],\n node_name=instance[\"node_name\"],\n hostname=instance[\"hostname\"],\n use_as_environment_name=enabled,\n )\n return self.get_is_env_name(name=name)",
"def setNameAtAddress(self,addr,name):\n seg=self.getSegmentAtAddress(addr)\n if seg != None:\n return seg.setNameAtAddress(addr,name)\n return False",
"def test_ap_short_preamble(dev, apdev):\n ssid = \"short preamble\"\n params = {}\n params['ssid'] = ssid\n params['preamble'] = \"1\"\n hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def api_name(self, api_name):\n\n self._api_name = api_name"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for csa, mapped from YANG variable /access_points/access_point/ssids/ssid/state/csa (boolean)
|
def _set_csa(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="csa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """csa must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="csa", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__csa = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def is_ca(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"is_ca\")",
"def corsi_against(sa, msa, bsa, *args, **kwargs):\r\n return calc_corsi(sa, msa, bsa, \"CA\")",
"def set_sonic_csat3a(self):\n idx = self.view.selectedIndexes()[0]\n selected_item = idx.model().itemFromIndex(idx)\n parent = selected_item.parent()\n parent.child(selected_item.row(), 1).setText(\"CSAT3A\")",
"def newCsaConstraint(self, **attrlinks):\n return CsaConstraint(self, **attrlinks)",
"def write_csf(self, address: int, data: bytes) -> bool:\n logger.info(f\"TX-CMD: WriteCSF(address=0x{address:08X}, length={len(data)})\")\n cmd_packet = CmdPacket(CommandTag.WRITE_CSF, address, 0, len(data))\n return self._send_data(cmd_packet, data)",
"def csr_state(self, csr_state):\n\n self._csr_state = csr_state",
"def include_ca_cert_url(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"include_ca_cert_url\")",
"def ca_stc_is_enabled(slot):\n h_slot = CK_SLOT_ID(slot)\n c_enabled = CK_BYTE()\n ret = CA_STCIsEnabled(h_slot, byref(c_enabled))\n if ret != CKR_OK:\n return ret, None\n return ret, bool(c_enabled.value)",
"def csam_enabled(self):\n ret = self._get_attr(\"CSAMEnabled\")\n return ret",
"def dump_csa(self):\n data = []\n\n data.append('V2.2')\n data.append('N+{}'.format(\"\" if self.clients[0] is None else self.clients[0].name))\n data.append('N-{}'.format(\"\" if self.clients[1] is None else self.clients[1].name))\n data.append('P1-HI-KA-GI-KI-OU')\n data.append('P2 * * * * -FU')\n data.append('P3 * * * * * ')\n data.append('P4+FU * * * * ')\n data.append('P5+OU+KI+GI+KA+HI')\n data.append('+')\n\n csa_kif = self.position.get_csa_kif()\n\n for (ply, kif) in enumerate(csa_kif):\n if ply % 2 == 0:\n data.append('+{}'.format(kif))\n else:\n data.append('-{}'.format(kif))\n data.append('T{}'.format(self.consumption[ply]))\n\n data.append('%{}'.format(self.gameover))\n\n return '\\n'.join(data)",
"def acriss_code(self, acriss_code):\n if acriss_code is None:\n raise ValueError(\"Invalid value for `acriss_code`, must not be `None`\")\n\n self._acriss_code = acriss_code",
"def set_sonic_csat3b(self):\n idx = self.view.selectedIndexes()[0]\n selected_item = idx.model().itemFromIndex(idx)\n parent = selected_item.parent()\n parent.child(selected_item.row(), 1).setText(\"CSAT3B\")",
"def get_sa():\n\n return SENSITIVE_ATTRIBUTE",
"def HasSGA(self):\n return self.__has('SGA')",
"def load_cluster_ca(self, node):\n url = f'{node}/node/controller/loadTrustedCAs'\n return self._post_form_encoded(url, None)",
"def test_create_ca_csr(self):\n ca_cn = 'test-create-ca-csr'\n expected_result = {'count': 1, 'type': 'Request', 'exit_code': 0, \n 'msg': 'Found Request:'}\n expected_result['data'] = [{'req_cn': ca_cn,\n 'verify': 'success',\n 'req_as_pem': ''}]\n csr = SpokeCSR(ca_cn, self.ca_name, ca=True)\n result = csr.create()\n result['data'][0]['req_as_pem'] = ''\n self.assertEqual(result, expected_result)\n csr.delete(delete_key=True)",
"def publish_ca_cert(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"publish_ca_cert\")",
"def is_canonical_start_codon(self) -> bool:\n return self == Codon.ATG"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for gtk_timeout, mapped from YANG variable /access_points/access_point/ssids/ssid/state/gtk_timeout (uint16)
|
def _set_gtk_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="gtk-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """gtk_timeout must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="gtk-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__gtk_timeout = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"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 ),\n is_leaf=True,\n yang_name=\"timeout\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/system\",\n defining_module=\"openconfig-system\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"timeout must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(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._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__timeout = t\n if hasattr(self, \"_set\"):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def set_timeout(self, timeout):\n old = getattr(self, '_timeout', 3.0)\n self._timeout = utils.timestr_to_secs(timeout)\n return utils.secs_to_timestr(old)",
"def set_timeout(self, timeout):\r\n self.timeout = float(timeout)/1000.",
"def set_timeout(self, timeout):\n\n old = getattr(self, '_timeout', 3.0)\n self._timeout = robottime.timestr_to_secs(timeout)\n return robottime.secs_to_timestr(old)",
"def _set_nbr_timeout(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=int,restriction_dict={'range': ['-32768..32767']}, int_size=16), restriction_dict={'range': [u'35..12600']}), default=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16)(105), is_leaf=True, yang_name=\"nbr-timeout\", rest_name=\"nbr-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set neighbor timeout'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='int16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"nbr_timeout must be of a type compatible with int16\"\"\",\n 'defined-type': \"int16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16), restriction_dict={'range': [u'35..12600']}), default=RestrictedClassType(base_type=int,restriction_dict={'range': ['-32768..32767']}, int_size=16)(105), is_leaf=True, yang_name=\"nbr-timeout\", rest_name=\"nbr-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Set neighbor timeout'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='int16', is_config=True)\"\"\",\n })\n\n self.__nbr_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def so_timeout(self, so_timeout: ConfigNodePropertyInteger):\n\n self._so_timeout = so_timeout",
"def timeout(self, value):\n self.__timeout = value",
"def vdi_timeout(self, value):\r\n\r\n request_json = {\r\n \"vDITimeOut\": value\r\n }\r\n\r\n self._set_instance_properties(\"_mssql_instance_prop\", request_json)",
"def so_timeout(self) -> ConfigNodePropertyInteger:\n return self._so_timeout",
"def set_timeout(self, timeout):\n self.m_timeout = timeout",
"def set_timeout(cls, timeout):\n ...",
"def get_session_timeout(self, as_timedelta=False):\n val = self.token_set.session_timeout\n if (self.session_timeout) or (self.session_timeout != '0,0'):\n val = self.token_set.session_timeout\n if as_timedelta and val:\n (hours, minutes) = val.split(',')\n return timedelta(hours=int(hours), minutes=int(minutes))\n return val",
"def set_notification_timeout(self, timeout):\n self.notification.RCVTIMEO = timeout",
"def set_stats_timeout(self, timeout='10s'):\n self.stats['timeout'] = timeout",
"def set_timeout(self, timeout: int) -> 'BaseMenu':\n self._timeout = timeout\n\n return self",
"def set_preferred_dgps_timeout(self, timeout):\n self.preferred_dgps_timeout = timeout\n if timeout is not None:\n self.configure_poll(CLASS_CFG, MSG_CFG_NAV5)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11k, mapped from YANG variable /access_points/access_point/ssids/ssid/state/dot11k (boolean)
|
def _set_dot11k(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11k", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11k must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11k", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dot11k = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k_neighbors(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k_neighbors must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__dot11k_neighbors = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def wabl_set_lqr_x_dot(new_kx_dot):\n #pack float as byte array\n new_kx_dot_bytes = struct.pack('f', new_kx_dot)\n\n ser.write(header)\n ser.write(x_dot_command)\n for byte in new_kx_dot_bytes:\n ser.write(bytes(byte))",
"def isKnotV(*args, **kwargs):\n \n pass",
"def is_true(self)->bool:\n return self.value == KgtkFormat.TRUE_SYMBOL",
"def _set_wifi(self, ssid, key, do_reboot=True):\n key_encoded = \"\".join(\"%\" + hex(ord(c))[2:].rjust(2, \"0\") for c in key)\n data = {\"ssid\": ssid, \"key\": key_encoded, \"security\": \"mixed\"}\n self._set(\"/common/set_wifi_setting\", data)\n if do_reboot:\n res = self._do_reboot()\n logging.debug(\"Reboot ordered to activate wifi changes: %s\", res)",
"def __pget_wifi(self):\n try:\n return self.__cp.getboolean(SEC, KEY_WIFI)\n except (ValueError, AttributeError), e:\n log.warning(\"config '%s' malformed (%s)\" % (KEY_WIFI, e))\n return True",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def SoMarkerSet_isMarkerBitSet(idx: 'int', bitNumber: 'int') -> \"SbBool\":\n return _coin.SoMarkerSet_isMarkerBitSet(idx, bitNumber)",
"def isMarkerBitSet(idx: 'int', bitNumber: 'int') -> \"SbBool\":\n return _coin.SoMarkerSet_isMarkerBitSet(idx, bitNumber)",
"def setKey(wifi, key):\n try:\n wifi.setKey(key)\n except Exception, detail:\n # Unexpected errors\n print type(detail), detail"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for okc, mapped from YANG variable /access_points/access_point/ssids/ssid/state/okc (boolean)
|
def _set_okc(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="okc", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """okc must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="okc", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__okc = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_okc(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=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"okc must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__okc = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_okc(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=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"okc must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"okc\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__okc = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_isOKButtonVisible(self, *args) -> \"bool\" :\n return _core.Command__set_isOKButtonVisible(self, *args)",
"def isConnected(self) -> \"SbBool\":\n return _coin.SoField_isConnected(self)",
"def wifi_connected() -> bool:\n try:\n record = db_io.latest_records(\"sensor_wifi\")[0]\n return record[0] == \"True\"\n except:\n return False",
"def SetOkLabel(self, label):\n self.__ok.SetLabel(label)",
"def _get_isOKButtonVisible(self) -> \"bool\" :\n return _core.Command__get_isOKButtonVisible(self)",
"def on():\n resp = _send('SetBinaryState', {'BinaryState': (1, 'Boolean')})\n tagValue = conn.extractSingleTag(resp, 'BinaryState')\n return True if tagValue in ['1', 'Error'] else False",
"def binary_state(value):\n if value == \"on\":\n return True\n elif value == \"off\":\n return False\n else:\n return float(\"nan\")",
"def cable_connected(self):\n ret = self._get_attr(\"cableConnected\")\n return ret",
"def opp_ready(c):\n if not is_timed(c[1]):\n return False\n # Timed challenge: see if there is a valid wait channel connection\n # where the opponent is waiting for this user\n return _opponent_waiting(cuid, c[0])",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def has_kings(self):\n return (KING | 1) in self and KING in self",
"def isConnectedFromEngine(self) -> \"SbBool\":\n return _coin.SoField_isConnectedFromEngine(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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def checkStbStatusIfKoReboot(self):\n\n stbStatus = self.rc.getStbStatus()\n if stbStatus == \"KO\":\n self.logger.warning(\"Hard Reset\")\n self.rc.hardReset()\n time.sleep(2)\n try:\n currTime = datetime.now()\n status = False\n moje = None\n time.sleep(15)\n while (status == False):\n datanow = datetime.now()\n calc = datanow - currTime\n calc = calc.seconds\n if (calc > 240):\n status = True\n self.rc.sendKeys([\"KEY_INFO\"])\n time.sleep(2)\n moje = self.getInfoFromLiveBanner()\n time.sleep(3)\n if moje != None:\n status = True\n time.sleep(3)\n self.rc.sendKeys([\"KEY_BACK\"])\n except:\n time.sleep(250)\n pass\n\n self.rc.sendKeys([\"KEY_BACK\", \"KEY_BACK\", \"KEY_TV\"])\n return True",
"def get(self, c: 'char &') -> \"SbBool\":\n return _coin.SoInput_get(self, c)",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for rx_data_dist, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/rx_data_dist (container)
|
def _set_rx_data_dist(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_rx_data_dist_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_data_dist, is_container='container', yang_name="rx-data-dist", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rx_data_dist must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_rx_data_dist_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_data_dist, is_container='container', yang_name="rx-data-dist", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__rx_data_dist = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_rx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_tx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def rx(self, rx):\n if rx is not None and rx > 1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value less than or equal to `1`\") # noqa: E501\n if rx is not None and rx < -1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value greater than or equal to `-1`\") # noqa: E501\n\n self._rx = rx",
"def setRxDataOut(self, rx_data_out):\n \n self.rx_data_out = rx_data_out",
"def rx_packets_received(self, rx_packets_received):\n\n self._rx_packets_received = rx_packets_received",
"def set_rx(db_redis, rx_data):\n assert len(rx_data) == 6, \"rx_data must be list of 6 floats\"\n db_redis.rdb_pipe.set(REDIS_RX_THROTTLE, rx_data[REMOTE_RX_THROTTLE_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DROLL, rx_data[REMOTE_RX_DROLL_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DPITCH, rx_data[REMOTE_RX_DPITCH_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DYAW, rx_data[REMOTE_RX_DYAW_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX1, rx_data[REMOTE_RX_AUX1_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX2, rx_data[REMOTE_RX_AUX2_IDX])\n db_redis.rdb_pipe.execute()\n db_redis.rdb.publish(REDIS_RX_CHANNEL, 1)",
"def setRxSNR(self, rx_SNR):\n \n self.rx_SNR = rx_SNR",
"def _set_rx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def updateDist(self, d):\n self.DistText.set('Distance Measured = ' + d)",
"def test_trace_distance_qnodes_rx_state(self, device):\n dev = qml.device(device, wires=1)\n\n @qml.qnode(dev)\n def circuit0(x):\n qml.RX(x, wires=0)\n return qml.state()\n\n @qml.qnode(dev)\n def circuit1():\n return qml.state()\n\n td = qml.qinfo.trace_distance(circuit0, circuit1, wires0=[0], wires1=[0])(np.pi, None)\n assert qml.math.allclose(td, 1.0)\n\n td = qml.qinfo.trace_distance(circuit1, circuit0, wires0=[0], wires1=[0])(None, np.pi)\n assert qml.math.allclose(td, 1.0)",
"def _set_rx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def update_distance(self):\n if self.serial is not None:\n if len(self.data_points) > 0:\n self.distance = sum(self.data_points)/len(self.data_points)\n else:\n self.distance = 300",
"def handle_rx(self, packet, port):\n #self.log(\"RX %s on %s (%s)\", packet, port, api.current_time())\n if isinstance(packet, basics.RoutePacket):\n self._routing_table.add_node_entry(packet.destination,\n port,\n packet.latency)\n elif isinstance(packet, basics.HostDiscoveryPacket):\n self._routing_table.add_port_costs(port, INFINITY)\n self._routing_table.add_node_entry(packet.src, port, INFINITY)\n else:\n # Totally wrong behavior for the sake of demonstration only: send\n # the packet back to where it came from!\n if packet.src != packet.dst:\n dest_port = self._routing_table \\\n .get_dest_next_hop(packet.dst).port\n self.send(packet, port=dest_port)",
"def test_trace_distance_qnodes_rxrz_rxry(self, device):\n dev = qml.device(device, wires=1)\n\n @qml.qnode(dev)\n def circuit0(x, y):\n qml.RX(x, wires=0)\n qml.RZ(y, wires=0)\n return qml.state()\n\n @qml.qnode(dev)\n def circuit1(x, y):\n qml.RX(x, wires=0)\n qml.RY(y, wires=0)\n return qml.state()\n\n td_args = qml.qinfo.trace_distance(circuit0, circuit1, wires0=[0], wires1=[0])(\n (0.0, np.pi), (0.0, 0.0)\n )\n td_arg_kwarg = qml.qinfo.trace_distance(circuit0, circuit1, wires0=[0], wires1=[0])(\n (0.0, {\"y\": np.pi}), (0.0, {\"y\": 0})\n )\n td_kwargs = qml.qinfo.trace_distance(circuit0, circuit1, wires0=[0], wires1=[0])(\n ({\"x\": 0, \"y\": np.pi}), ({\"x\": 0, \"y\": 0})\n )\n\n assert qml.math.allclose(td_args, 0.0)\n assert qml.math.allclose(td_arg_kwarg, 0.0)\n assert qml.math.allclose(td_kwargs, 0.0)",
"def channel_distances_downstream(self, ch_nodes):\n ch_links = self._grid.at_node[\"flow__link_to_receiver_node\"][ch_nodes]\n ch_dists = np.empty_like(ch_nodes, dtype=float)\n # dists from ch head, NOT drainage divide\n ch_dists[0] = 0.0\n np.cumsum(self._grid.length_of_d8[ch_links[:-1]], out=ch_dists[1:])\n return ch_dists",
"def _dist_matrix(self, x, y):\n dm = dtw_distance(x, y, self.window, self.normalize)\n\n return dm",
"def getRxDataOut(self):\n \n return self.rx_data_out",
"def rx_power(y: PDPSegment) -> float:\r\n return y.rx_power",
"def calcDist(self, elecLocX, elec_dist_um_y):\n assert elecLocX > 0 and elecLocX < 1\n distToElec = np.array([seg.x-elecLocX for seg in self.axon]) * self.axon.L\n return np.sqrt(np.abs(distToElec)**2 + elec_dist_um_y**2)",
"def LeaseRx(self):\n if self.force_auto_sync:\n self.get('LeaseRx')\n return self._LeaseRx"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for rx_data_wmm, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/rx_data_wmm (container)
|
def _set_rx_data_wmm(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_rx_data_wmm_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_data_wmm, is_container='container', yang_name="rx-data-wmm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rx_data_wmm must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_rx_data_wmm_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_data_wmm, is_container='container', yang_name="rx-data-wmm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__rx_data_wmm = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_rx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_tx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_rx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def setRxDataOut(self, rx_data_out):\n \n self.rx_data_out = rx_data_out",
"def rx(self, rx):\n if rx is not None and rx > 1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value less than or equal to `1`\") # noqa: E501\n if rx is not None and rx < -1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value greater than or equal to `-1`\") # noqa: E501\n\n self._rx = rx",
"def rx_serial(self, data):\n if self.__print_rx_details:\n if len(data):\n print('rx: ' + hexlify(data))\n\n # This -----------------------------------------------------------------\n # Copy received to the buffer.\n self.__rx_buffer = self.__rx_buffer + bytearray(data)\n\n start = self.__rx_buffer.find(b'\\x7e')\n end = self.__rx_buffer.find(b'\\x7f')\n\n # If not found clear the buffer and wait for it.\n if start < 0:\n self.__rx_buffer = bytearray()\n return\n # If no end not found... wait for more.\n if end < 0:\n return\n\n # Get the frames\n while start < end:\n start = self.__rx_buffer[:end].rfind(b'\\x7e')\n self.buff.add(self.packet_unstuff(self.__rx_buffer[start:end + 1]))\n if self.__print_rx:\n print((\"PACKET!!: \" + hexlify(self.__rx_buffer[start:end + 1])))\n\n self.__rx_buffer = self.__rx_buffer[end + 1:]\n start = self.__rx_buffer.find(b'\\x7e')\n end = self.__rx_buffer.find(b'\\x7f')\n if start < 0:\n self.__rx_buffer = bytearray()\n return\n return",
"def _set_rx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def set_rx(db_redis, rx_data):\n assert len(rx_data) == 6, \"rx_data must be list of 6 floats\"\n db_redis.rdb_pipe.set(REDIS_RX_THROTTLE, rx_data[REMOTE_RX_THROTTLE_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DROLL, rx_data[REMOTE_RX_DROLL_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DPITCH, rx_data[REMOTE_RX_DPITCH_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DYAW, rx_data[REMOTE_RX_DYAW_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX1, rx_data[REMOTE_RX_AUX1_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX2, rx_data[REMOTE_RX_AUX2_IDX])\n db_redis.rdb_pipe.execute()\n db_redis.rdb.publish(REDIS_RX_CHANNEL, 1)",
"def test_bufferRxMsg(self):\n # Test without buffer\n assert(self.radio.bytesInRxBuffer == 0);\n testMsg = b'1234567890'\n self.radio.bufferRxMsg(testMsg, False)\n assert(self.radio.bytesInRxBuffer == len(testMsg))\n assert(self.radio.rxBuffer[0:len(testMsg)] == testMsg)\n\n # Test buffering\n self.radio.bufferRxMsg(testMsg, True)\n assert(self.radio.bytesInRxBuffer == len(testMsg)*2)\n assert(self.radio.rxBuffer[0:2*len(testMsg)] == testMsg + testMsg)\n\n # Test buffer overflow\n self.radio.rxBufferSize = 10\n self.radio.clearRxBuffer() # update buffer size\n\n self.radio.bufferRxMsg(testMsg, True)\n assert(self.radio.rxBuffer == testMsg)\n self.radio.bufferRxMsg(b'99999', True) # confirm that bytes are not buffered\n assert(self.radio.rxBuffer == testMsg)",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for rx_mcs, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/rx_mcs (container)
|
def _set_rx_mcs(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_rx_mcs_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_mcs, is_container='container', yang_name="rx-mcs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rx_mcs must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_rx_mcs_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_rx_mcs, is_container='container', yang_name="rx-mcs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__rx_mcs = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_rx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_tx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_rx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def rx(self, rx):\n if rx is not None and rx > 1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value less than or equal to `1`\") # noqa: E501\n if rx is not None and rx < -1: # noqa: E501\n raise ValueError(\"Invalid value for `rx`, must be a value greater than or equal to `-1`\") # noqa: E501\n\n self._rx = rx",
"def MRST_RX_B(self):\n return self._readReg('CHIPCFG', 'MRST_RX_B')",
"def MRST_RX_A(self):\n return self._readReg('CHIPCFG', 'MRST_RX_A')",
"def MRST_RX_B(self, value):\n if value not in [0, 1]:\n raise ValueError(\"Value must be [0,1]\")\n self._writeReg('CHIPCFG', 'MRST_RX_B', value)",
"def _set_rx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def MRST_RX_A(self, value):\n if value not in [0, 1]:\n raise ValueError(\"Value must be [0,1]\")\n self._writeReg('CHIPCFG', 'MRST_RX_A', value)",
"def rx_packets_received(self, rx_packets_received):\n\n self._rx_packets_received = rx_packets_received",
"def setRxSNR(self, rx_SNR):\n \n self.rx_SNR = rx_SNR",
"def test_rx_mcz(self, wires, res):\n\n op1 = qml.RX(0.1, wires=wires[0][0])\n op2 = qml.ctrl(qml.PauliZ(wires=wires[1][2]), control=wires[1][:-1])\n\n assert qml.is_commuting(op1, op2) == res\n assert qml.is_commuting(op2, op1) == res",
"def _set_tx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def set_rx_rc(db_redis, rx_rc_data):\n assert len(rx_rc_data) == 6, \"rx_rc_data must be list of 6 ints\"\n db_redis.rdb_pipe.set(REDIS_RX_RC_DROLL, rx_rc_data[REMOTE_RX_DROLL_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_RC_DPITCH, rx_rc_data[REMOTE_RX_DPITCH_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_RC_DYAW, rx_rc_data[REMOTE_RX_DYAW_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_RC_THROTTLE, rx_rc_data[REMOTE_RX_THROTTLE_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_RC_AUX1, rx_rc_data[REMOTE_RX_AUX1_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_RC_AUX2, rx_rc_data[REMOTE_RX_AUX2_IDX])\n db_redis.rdb_pipe.execute()\n db_redis.rdb.publish(REDIS_RX_RC_CHANNEL, 1)",
"def set_ht_mcs(self, ht_mcs):\n\n self._ht_mcs = self.block.ht_supports & set(ht_mcs)\n\n if not self._ht_mcs:\n self._ht_mcs = self.block.ht_supports",
"def set_rx(db_redis, rx_data):\n assert len(rx_data) == 6, \"rx_data must be list of 6 floats\"\n db_redis.rdb_pipe.set(REDIS_RX_THROTTLE, rx_data[REMOTE_RX_THROTTLE_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DROLL, rx_data[REMOTE_RX_DROLL_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DPITCH, rx_data[REMOTE_RX_DPITCH_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_DYAW, rx_data[REMOTE_RX_DYAW_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX1, rx_data[REMOTE_RX_AUX1_IDX])\n db_redis.rdb_pipe.set(REDIS_RX_AUX2, rx_data[REMOTE_RX_AUX2_IDX])\n db_redis.rdb_pipe.execute()\n db_redis.rdb.publish(REDIS_RX_CHANNEL, 1)",
"def setRxDataOut(self, rx_data_out):\n \n self.rx_data_out = rx_data_out",
"def _set_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def get_rx_rc(db_redis):\n db_redis.rdb_pipe.get(REDIS_RX_RC_THROTTLE)\n db_redis.rdb_pipe.get(REDIS_RX_RC_DROLL)\n db_redis.rdb_pipe.get(REDIS_RX_RC_DPITCH)\n db_redis.rdb_pipe.get(REDIS_RX_RC_DYAW)\n db_redis.rdb_pipe.get(REDIS_RX_RC_AUX1)\n db_redis.rdb_pipe.get(REDIS_RX_RC_AUX2)\n rx_data = db_redis.rdb_pipe.execute()\n return list(map(int, rx_data))",
"def test_rx_mcz(self, wires, res):\n\n def z():\n qml.PauliZ(wires=wires[1][2])\n\n commutation = qml.is_commuting(\n qml.RX(0.1, wires=wires[0][0]), qml.ctrl(z, control=wires[1][:-1])()\n )\n assert commutation == res"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for tx_data_dist, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/tx_data_dist (container)
|
def _set_tx_data_dist(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_tx_data_dist_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_data_dist, is_container='container', yang_name="tx-data-dist", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tx_data_dist must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_tx_data_dist_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_data_dist, is_container='container', yang_name="tx-data-dist", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__tx_data_dist = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_tx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_rx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_dist, is_container='container', yang_name=\"rx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def updateDist(self, d):\n self.DistText.set('Distance Measured = ' + d)",
"def update_distance(self):\n if self.serial is not None:\n if len(self.data_points) > 0:\n self.distance = sum(self.data_points)/len(self.data_points)\n else:\n self.distance = 300",
"def set_arbitrary_distance(self):\n self.dist = np.min(self.mx-self.mn)",
"def _dist_matrix(self, x, y):\n dm = dtw_distance(x, y, self.window, self.normalize)\n\n return dm",
"def distance(self,data,replica):\n weight = np.random.multivariate_normal(mean=np.random.normal(size=self.n_dim),cov = np.eye(self.n_dim),size=self.data_dim)\n weight = weight /np.sqrt(np.sum(weight**2,axis=0,keepdims=True))\n data = np.matmul(data,weight)\n replica = np.matmul(replica,weight)\n \n result = [stats.wasserstein_distance(data[:,i],replica[:,i]) for i in range(len(weight))]\n\n return np.mean(result)\n # return np.abs(np.mean(data) - np.mean(replica)) + np.abs(np.std(data) - np.std(replica))",
"def dist(self, atom0, atom1):\n\n pos0 = self.pos[atom0]\n pos1 = self.pos[atom1]\n\n dist = np.linalg.norm(pos0 - pos1)\n\n return dist",
"def delete_dist(self):\n del self.dist\n del self.dist_x\n del self.dist_y\n del self.dist_z\n\n del self.adist\n del self.adist_3\n del self.adist_5\n del self.adist_x\n del self.adist_y\n del self.adist_z\n del self.adistb_x\n del self.adistb_y\n del self.adistb_z",
"def set_distorion(self, distortion):\n self.dist = distortion",
"def setDistance(self, distance) -> None:\n ...",
"def adjustDistance(self, dist):\n if self.distance is None:\n self.distance = dist\n else:\n theta = math.asin(self.led.height / self.distance)\n adjustedDist = math.cos(theta) * self.distance\n self.distance = (adjustedDist + dist) / 2\n return self.distance",
"def distance(self, distanceDict):\n self._distance = copy.deepcopy(distanceDict)",
"def distance(self, pT2):\n return _almathswig.Transform_distance(self, pT2)",
"def update_distance(self, map_distance):\n try:\n assert isinstance(map_distance, float)\n except AssertionError:\n raise TypeError\n self._mapd = map_distance",
"def educt_distance(self):\n return self._educt_distance",
"def distance(self, src, tar, c):\n src, tar = self.proj(src, c), self.proj(tar, c)\n dist = self.sqdist(src, tar, c)\n dist = tf.expand_dims(dist, -1)\n return dist",
"def distance(state):\n x = state.knight_pos[0]\n y = state.knight_pos[1]\n state.dist = min(x,state.nRows - x - 1) + min(y,state.nCols - y - 1)",
"def calc_distance(self):\n total_distance = sum([connection.distance for connection in self.get_true_connections()])\n return total_distance",
"def update_distance(self, new_distance):\n self._node_id[0][2] = new_distance"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for tx_data_wmm, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/tx_data_wmm (container)
|
def _set_tx_data_wmm(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_tx_data_wmm_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_data_wmm, is_container='container', yang_name="tx-data-wmm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tx_data_wmm must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_tx_data_wmm_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_data_wmm, is_container='container', yang_name="tx-data-wmm", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__tx_data_wmm = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_tx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_rx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_rx_data_wmm, is_container='container', yang_name=\"rx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_tx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def set_wifi_wmm(self, mode):\n if mode in (\"on\", \"1\", 1):\n self._logger.info(\"Set wifi wmm to on\")\n mode = 1\n elif mode in (\"off\", \"0\", 0):\n self._logger.info(\"Set wifi wmm to off\")\n mode = 0\n else:\n raise Exception(-5,\n \"Parameter mode is not valid !\")\n for radio in self.WIFI_RADIOS:\n self._send_cmd(\"interface dot11radio \" + str(radio))\n if mode == 0:\n self._send_cmd(\"no dot11 qos mode wmm\")\n else:\n self._send_cmd(\"dot11 qos mode wmm\")\n self._send_cmd(\"exit\")",
"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_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def parse_wmm_coefficients(lines, data):\n nm_index = []\n coeff = []\n\n # parse coefficients and convert them to a sparse structure\n for line in lines:\n fields = line.split()\n if len(fields) == 1 and RE_TERMINATING_LINE.match(fields[0]):\n break\n n_idx, m_idx = int(fields[0]), int(fields[1])\n coef_g, coef_h, coef_dg, coef_dh = [float(v) for v in fields[2:6]]\n if coef_g != 0 or coef_dg != 0:\n nm_index.append((n_idx, m_idx))\n coeff.append((coef_g, coef_dg))\n if m_idx > 0 and (coef_h != 0 or coef_dh != 0):\n nm_index.append((n_idx, -m_idx))\n coeff.append((coef_h, coef_dh))\n\n # convert (t0, dt) to (t0, t1)\n epoch = data[\"epoch\"]\n times = array([epoch, epoch + WMM_VALIDITY_PERIOD])\n nm_index = array(nm_index)\n coeff = array(coeff)\n coeff[:, 1] = coeff[:, 0] + coeff[:, 1]*WMM_VALIDITY_PERIOD\n\n return nm_index, coeff, times",
"def _set_tx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def setMPxData(*args, **kwargs):\n \n pass",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def keyTcsBandwidth(self, key, data):\n self.sb_bandwidth = float(data[key])",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for tx_mcs, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/counters/tx_mcs (container)
|
def _set_tx_mcs(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=yc_tx_mcs_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_mcs, is_container='container', yang_name="tx-mcs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """tx_mcs must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_tx_mcs_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters_tx_mcs, is_container='container', yang_name="tx-mcs", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__tx_mcs = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_tx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_tx_mcs, is_container='container', yang_name=\"tx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_rx_mcs(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rx_mcs must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rx_mcs_openconfig_wifi_mac__ssids_ssid_state_counters_rx_mcs, is_container='container', yang_name=\"rx-mcs\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__rx_mcs = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_tx_data_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_wmm_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_wmm, is_container='container', yang_name=\"tx-data-wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def set_ht_mcs(self, ht_mcs):\n\n self._ht_mcs = self.block.ht_supports & set(ht_mcs)\n\n if not self._ht_mcs:\n self._ht_mcs = self.block.ht_supports",
"def setCCM_TYPE(self, ccm_type) -> None:\n ...",
"def setModelTypeAsMTCNN(self):\r\n self.__modelType = \"MTCCN\"",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_csa(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"csa must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"csa\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__csa = t\n if hasattr(self, '_set'):\n self._set()",
"def from_nodecmtys(cls, nodecmtys, **kwargs):\n cmtynodes = { }\n for n, c in nodecmtys.iteritems():\n cmtynodes.setdefault(c, set()).add(n)\n return cls.from_dict(cmtynodes=cmtynodes, **kwargs)",
"def MRST_TX_A(self, value):\n if value not in [0, 1]:\n raise ValueError(\"Value must be [0,1]\")\n self._writeReg('CHIPCFG', 'MRST_TX_A', value)",
"def _set_tx_data_dist(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"tx_data_dist must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_tx_data_dist_openconfig_wifi_mac__ssids_ssid_state_counters_tx_data_dist, is_container='container', yang_name=\"tx-data-dist\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__tx_data_dist = t\n if hasattr(self, '_set'):\n self._set()",
"def ModifyCcnAttribute(self, request):\n try:\n params = request._serialize()\n headers = request.headers\n body = self.call(\"ModifyCcnAttribute\", params, headers=headers)\n response = json.loads(body)\n model = models.ModifyCcnAttributeResponse()\n model._deserialize(response[\"Response\"])\n return model\n except Exception as e:\n if isinstance(e, TencentCloudSDKException):\n raise\n else:\n raise TencentCloudSDKException(type(e).__name__, str(e))",
"def MRST_TX_A(self):\n return self._readReg('CHIPCFG', 'MRST_TX_A')",
"def setModelTypeAsMTCNN(self):\r\n self.__modelType = \"mtcnn\"",
"def MRST_TX_B(self, value):\n if value not in [0, 1]:\n raise ValueError(\"Value must be [0,1]\")\n self._writeReg('CHIPCFG', 'MRST_TX_B', value)",
"def matmul(self, t, m, c):\n x = self.to_tangent(t, c=c, base=None)\n mx = tf.matmul(x, m)\n mx = self.to_manifold(mx, c=c, base=None)\n return mx",
"def set_tc(self, b):\n _ldns.ldns_pkt_set_tc(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def transac_attributes(self, transac_attributes):\n\n self._transac_attributes = transac_attributes",
"def set_txatten(self, value):\n self.command(\"txatten %d\" % (value))",
"def get_channel_taps(self, *args, **kwargs):\n return _digital_swig.digital_pfb_clock_sync_ccf_sptr_get_channel_taps(self, *args, **kwargs)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Getter method for radio_id, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/radio_id (uint8)
|
def _get_radio_id(self):
return self.__radio_id
|
[
"def radio_version(self) -> Version | None:\n return self._radio_version",
"def set_radio_url(self, radio):\n\n radio_url_dict = read_dict_file(RADIO_URL_FILE)\n\n if radio.lower() in radio_url_dict.keys():\n logger.debug('The radio url is changed')\n self.radio = radio.lower()\n self.url = radio_url_dict[radio.lower()]\n else:\n logger.warning('The radio doesn\\'t exist in the dictionary')",
"def reset_radio():\n\t\tcommand = \"reset=0\"\n\t\treturn(str(uart_tx(command)).split(\"\\\\\")[0], str(uart_rx()).split(\"\\\\\")[0])",
"def get_radio_channel(self):\n (status, channel) = self.__device.get_radio_channel()\n self.__device.decode_error_status(status, cmd='get_radio_channel', print_on_error=True)\n return \"Ch.%d - %dMHz\" % (channel, dec.channel_to_freq.get(channel, \"Unknown channel\"))",
"def getInputRadioConnector(self, radiobutton):\n if radiobutton.layoutDirection() == OUTPUT_LAYOUT:\n raise Exception(\"radiobutton is not an input radiobutton.\\\n Output radiobuttons can have multiple connectors.\")\n for connector in self.connectorList:\n if connector.itemB == self:\n if self.filterframe.childAt(connector.local_posB.toPoint()) == radiobutton:\n return connector\n# if self.widget().childAt(connector.local_posB.toPoint()) == radiobutton: #For some reason the radiobuttons have the same memory addresses, even though they belong to different filters. \n# return connector\n return None",
"def idr_address(self) -> int:\n return AP_IDR",
"def setRadioChannel(self,channel):\n \n data=self.EZSPtrans([0x9A, channel&xFF]);\n return ord(data[5]);",
"def create_radio_button(self, *,\n name: typing.Optional[UIIdentifier] = None,\n text: typing.Optional[UILabel] = None,\n icon: typing.Optional[UIIdentifier] = None,\n value: typing.Any = None,\n group_value: typing.Optional[UIIdentifier] = None,\n **kwargs: typing.Any) -> UIDescriptionResult:\n d: UIDescriptionResult = {\"type\": \"radio_button\"}\n if name is not None:\n d[\"name\"] = name\n if text is not None:\n d[\"text\"] = text\n if icon is not None:\n d[\"icon\"] = icon\n if value is not None:\n d[\"value\"] = value\n if group_value is not None:\n d[\"group_value\"] = group_value\n self.__process_common_properties(d, **kwargs)\n return d",
"def idr_decode(idr):\n rev = util.bits(idr, (31, 28))\n jedec_cont = util.bits(idr, (27, 24))\n jedec_id = util.bits(idr, (23, 17))\n ap_class = util.bits(idr, (16, 13))\n ap_variant = util.bits(idr, (7, 4))\n ap_type = util.bits(idr, (3, 0))\n s = []\n if jedec_cont == 0x4 and jedec_id == 0x3b:\n jedec_name = 'ARM'\n else:\n jedec_name = '?'\n ap_name = {\n AP_TYPE_JTAG: 'JTAG',\n AP_TYPE_AHB: 'AHB',\n AP_TYPE_APB: 'APB',\n AP_TYPE_AXI: 'AXI',\n }\n class_name = {\n AP_CLASS_NONE: 'NONE',\n AP_CLASS_MEM_AP: 'MEM-AP',\n }\n s.append('idr 0x%08x' % idr)\n s.append('rev %x' % rev)\n s.append('jedec %x:%x (%s)' % (jedec_cont, jedec_id, jedec_name))\n s.append('class %x (%s)' % (ap_class, class_name.get(ap_class, '?')))\n s.append('ap %x:%x (%s)' % (ap_variant, ap_type, ap_name.get(ap_type, '?')))\n return ' '.join(s)",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def onRadioMessage(self, inEvent: RealTimeEvent):\n\n player_id = inEvent.parameters['player_id']\n player_location = inEvent.parameters['player_location']\n message = inEvent.parameters['message']\n broadcast = inEvent.parameters['broadcast']\n\n self.realTimeRound.radioMessage(player_id, player_location, message, broadcast)",
"def idr_address(self) -> int:\n return APv2_IDR",
"def config_rule_id(self) -> Optional[str]:\n return pulumi.get(self, \"config_rule_id\")",
"def unique_id(self):\n return _radio_astro_swig.dedispersion_sptr_unique_id(self)",
"def _read_mode_rsralt(self, size, kind):\n if size != 4:\n raise ProtocolError(f'{self.alias}: [OptNo {kind}] invalid format')\n\n _code = self._read_unpack(2)\n\n data = dict(\n kind=kind,\n type=self._read_opt_type(kind),\n length=size,\n alert=_ROUTER_ALERT.get(_code),\n code=_code,\n )\n\n return data",
"def submitRadio(self, id1, id2, id3):\n survey, slide = self._basicSubmitSetup(id1, id2, id3)\n answer = request.params['radioButton']\n sa, result = self._basicAnswerCreation(survey, slide, answer)\n return self._basicReturnResult(result, answer)",
"def addRadioButton(self, id, label=None):\n\t\tif not label: label = id\n\t\tself.widgets.append(JPLRadioButton(self.centralWidget, id, label))\n\t\tself.labels.append(None)",
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"def rating_area_id(self):\n return self._rating_area_id"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for radio_id, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/radio_id (uint8)
|
def _set_radio_id(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="radio-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """radio_id must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="radio-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__radio_id = t
if hasattr(self, '_set'):
self._set()
|
[
"def _get_radio_id(self):\n return self.__radio_id",
"def set_radio_url(self, radio):\n\n radio_url_dict = read_dict_file(RADIO_URL_FILE)\n\n if radio.lower() in radio_url_dict.keys():\n logger.debug('The radio url is changed')\n self.radio = radio.lower()\n self.url = radio_url_dict[radio.lower()]\n else:\n logger.warning('The radio doesn\\'t exist in the dictionary')",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def reset_radio():\n\t\tcommand = \"reset=0\"\n\t\treturn(str(uart_tx(command)).split(\"\\\\\")[0], str(uart_rx()).split(\"\\\\\")[0])",
"def radio_version(self) -> Version | None:\n return self._radio_version",
"def addRadioButton(self, id, label=None):\n\t\tif not label: label = id\n\t\tself.widgets.append(JPLRadioButton(self.centralWidget, id, label))\n\t\tself.labels.append(None)",
"def setRadioChannel(self,channel):\n \n data=self.EZSPtrans([0x9A, channel&xFF]);\n return ord(data[5]);",
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"def _set_snr(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=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"snr must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__snr = t\n if hasattr(self, '_set'):\n self._set()",
"def subnet_id(self, subnet_id):\n # type: (string_types) -> None\n\n if subnet_id is not None:\n if not isinstance(subnet_id, string_types):\n raise TypeError(\"Invalid type for `subnet_id`, type has to be `string_types`\")\n\n self._subnet_id = subnet_id",
"def network_id(self, network_id):\n if network_id is None:\n raise ValueError(\"Invalid value for `network_id`, must not be `None`\")\n\n self._network_id = network_id",
"def create_radio_button(self, *,\n name: typing.Optional[UIIdentifier] = None,\n text: typing.Optional[UILabel] = None,\n icon: typing.Optional[UIIdentifier] = None,\n value: typing.Any = None,\n group_value: typing.Optional[UIIdentifier] = None,\n **kwargs: typing.Any) -> UIDescriptionResult:\n d: UIDescriptionResult = {\"type\": \"radio_button\"}\n if name is not None:\n d[\"name\"] = name\n if text is not None:\n d[\"text\"] = text\n if icon is not None:\n d[\"icon\"] = icon\n if value is not None:\n d[\"value\"] = value\n if group_value is not None:\n d[\"group_value\"] = group_value\n self.__process_common_properties(d, **kwargs)\n return d",
"def onRadioMessage(self, inEvent: RealTimeEvent):\n\n player_id = inEvent.parameters['player_id']\n player_location = inEvent.parameters['player_location']\n message = inEvent.parameters['message']\n broadcast = inEvent.parameters['broadcast']\n\n self.realTimeRound.radioMessage(player_id, player_location, message, broadcast)",
"def get_radio_channel(self):\n (status, channel) = self.__device.get_radio_channel()\n self.__device.decode_error_status(status, cmd='get_radio_channel', print_on_error=True)\n return \"Ch.%d - %dMHz\" % (channel, dec.channel_to_freq.get(channel, \"Unknown channel\"))",
"def getInputRadioConnector(self, radiobutton):\n if radiobutton.layoutDirection() == OUTPUT_LAYOUT:\n raise Exception(\"radiobutton is not an input radiobutton.\\\n Output radiobuttons can have multiple connectors.\")\n for connector in self.connectorList:\n if connector.itemB == self:\n if self.filterframe.childAt(connector.local_posB.toPoint()) == radiobutton:\n return connector\n# if self.widget().childAt(connector.local_posB.toPoint()) == radiobutton: #For some reason the radiobuttons have the same memory addresses, even though they belong to different filters. \n# return connector\n return None",
"def submitRadio(self, id1, id2, id3):\n survey, slide = self._basicSubmitSetup(id1, id2, id3)\n answer = request.params['radioButton']\n sa, result = self._basicAnswerCreation(survey, slide, answer)\n return self._basicReturnResult(result, answer)",
"def rating_area_id(self, rating_area_id):\n self._rating_area_id = rating_area_id",
"def idr_address(self) -> int:\n return AP_IDR",
"def idr_decode(idr):\n rev = util.bits(idr, (31, 28))\n jedec_cont = util.bits(idr, (27, 24))\n jedec_id = util.bits(idr, (23, 17))\n ap_class = util.bits(idr, (16, 13))\n ap_variant = util.bits(idr, (7, 4))\n ap_type = util.bits(idr, (3, 0))\n s = []\n if jedec_cont == 0x4 and jedec_id == 0x3b:\n jedec_name = 'ARM'\n else:\n jedec_name = '?'\n ap_name = {\n AP_TYPE_JTAG: 'JTAG',\n AP_TYPE_AHB: 'AHB',\n AP_TYPE_APB: 'APB',\n AP_TYPE_AXI: 'AXI',\n }\n class_name = {\n AP_CLASS_NONE: 'NONE',\n AP_CLASS_MEM_AP: 'MEM-AP',\n }\n s.append('idr 0x%08x' % idr)\n s.append('rev %x' % rev)\n s.append('jedec %x:%x (%s)' % (jedec_cont, jedec_id, jedec_name))\n s.append('class %x (%s)' % (ap_class, class_name.get(ap_class, '?')))\n s.append('ap %x:%x (%s)' % (ap_variant, ap_type, ap_name.get(ap_type, '?')))\n return ' '.join(s)",
"def _set_rbridge_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rbridge_id must be of a type compatible with uint32\"\"\",\n 'defined-type': \"uint32\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\"\"\",\n })\n\n self.__rbridge_id = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for num_associated_clients, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/state/num_associated_clients (uint8)
|
def _set_num_associated_clients(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="num-associated-clients", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """num_associated_clients must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="num-associated-clients", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__num_associated_clients = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_num_associated_clients(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=\"num-associated-clients\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"num_associated_clients must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"num-associated-clients\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__num_associated_clients = t\n if hasattr(self, '_set'):\n self._set()",
"def number_of_clients(self):\n ret = self._get_attr(\"numberOfClients\")\n return ret",
"def get_client_count(self) -> int:\n return len(self.connected_clients)",
"def num_clients(self):\r\n \r\n return len(self.__connections)",
"def getNumAssociations(self) -> \"size_t\":\n return _coin.ScXMLEvent_getNumAssociations(self)",
"def associated_containers_count(self, associated_containers_count):\n\n self._associated_containers_count = associated_containers_count",
"def _set_clients(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_clients_openconfig_wifi_mac__ssids_ssid_clients, is_container='container', yang_name=\"clients\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"clients must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_clients_openconfig_wifi_mac__ssids_ssid_clients, is_container='container', yang_name=\"clients\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__clients = t\n if hasattr(self, '_set'):\n self._set()",
"def calc_connected_count(db):\n # Get the lookup\n beacon_lookup = _get_beacon_lookup(db)\n\n # Set the connected_count's\n for beacon_info in beacon_lookup.itervalues():\n beacon_info['beacon'].connected_count = len(beacon_info['connected_beacons'])\n\n db.session.commit()",
"def associated_hosts_count(self, associated_hosts_count):\n\n self._associated_hosts_count = associated_hosts_count",
"def count(message):\n room = message['room']\n\n restaurant_room = restaurant_rooms[room]\n\n restaurant_room.increment_clients_count()\n\n emit(\n 'client-count',\n {'client_count': restaurant_room.clients_count},\n room=room)\n\n logger.debug(f\"Clients count: {restaurant_room.clients_count}\")",
"def count(cls, client) :\n\t\ttry :\n\t\t\tobj = onlinkipv6prefix()\n\t\t\toption_ = options()\n\t\t\toption_.count = True\n\t\t\tresponse = obj.get_resources(client, option_)\n\t\t\tif response :\n\t\t\t\treturn response[0].__dict__['___count']\n\t\t\treturn 0\n\t\texcept Exception as e :\n\t\t\traise e",
"def numConnectedEdges(*args, **kwargs):\n \n pass",
"def associated_user_count(self, associated_user_count):\n\n self._associated_user_count = associated_user_count",
"def getNumConnections(self) -> \"int\":\n return _coin.SoField_getNumConnections(self)",
"def candidate_core_cnt(self):\n total_cnt = 0\n for interface in self.ccap_core_candidate:\n total_cnt += len(self.ccap_core_candidate[interface])\n\n return total_cnt",
"def set_number_of_players(self, max_players):\n req_set_num_players = self.player_connect.method.set_num_players(max_players)\n print \"set_number_of_players::> \" + req_set_num_players()",
"def set_nscount(self, c):\n _ldns.ldns_pkt_set_nscount(self, c)\n #parameters: ldns_pkt *,uint16_t,\n #retvals: ",
"def get_num_connections(self):\n return len(self.connections)",
"def number_of_users_in_ap(self) -> NumberOfUsersInAP:\n return self._number_of_users_in_ap",
"def on_peer_connected(peer, peer_count):"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for counters, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/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_ssids_ssid_bssids_bssid_state_counters, is_container='container', yang_name="counters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """counters must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_counters_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state_counters, is_container='container', yang_name="counters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__counters = t
if hasattr(self, '_set'):
self._set()
|
[
"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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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_clients_client_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_wifi_mac__ssids_ssid_clients_client_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_spanning_tree__stp_rstp_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"def counters ( self ) :\n return self._counters",
"def retrieve_interfaces_interface_subinterfaces_subinterface_state_counters_counters_by_id(name, index): # noqa: E501\n return 'do some magic!'",
"def retrieve_interfaces_interface_state_counters_counters_by_id(name): # noqa: E501\n return 'do some magic!'",
"def counters(cli_opts, json): # noqa: B902\n\n return_code = fib.FibCountersCmd(cli_opts).run(json)\n sys.exit(return_code)",
"def _cx_counters_psutil(self):\n for iface, counters in psutil.net_io_counters(pernic=True).iteritems():\n metrics = {\n 'bytes_rcvd': counters.bytes_recv,\n 'bytes_sent': counters.bytes_sent,\n 'packets_in.count': counters.packets_recv,\n 'packets_in.error': counters.errin,\n 'packets_out.count': counters.packets_sent,\n 'packets_out.error': counters.errout,\n }\n self._submit_devicemetrics(iface, metrics)",
"def getIbvCountersWrapper(args):\n return getIbvCounters(*args)",
"def list_counters():\n print(\"\\n\".join(query_column(\"SELECT counter FROM counters\")))",
"def update_set_adcount(self, c):\n _ldns.ldns_update_set_adcount(self, c)\n #parameters: ldns_pkt *,uint16_t,\n #retvals: ",
"def _build_counters(counters):\n return [\n {'name': name, 'delta': value}\n for name, value in counters.items()\n ]",
"def parse_counters(self, counters=None):\n if self.stderr == sys.stderr:\n raise AssertionError('You must call sandbox() first;'\n ' parse_counters() is for testing only.')\n\n stderr_results = parse_mr_job_stderr(self.stderr.getvalue(), counters)\n return stderr_results['counters']",
"def _set_counter_value(self, frame_id, name, value):\n if name not in self.__counters:\n self.__counters[name] = [None] * self.__frame_count\n self.__counters[name][frame_id] = value",
"def reset_counters(self) -> dict[str, float]:\n res = self.get_stats()\n self._start_time = time.time()\n self._count = 0\n return res",
"def get_network_counters(args={}):\n res = {}\n\n if args.get('net_io_counters', False):\n res['net_io_counters'] = to_dict(psutil.net_io_counters(pernic=pernic))\n\n return res",
"def _update_counters(self):\n self._bytes_sent = self._connection.bytes_sent\n self._bytes_received = self._connection.bytes_received",
"def registerCounters(self, counters):\n for counter in counters:\n if counter in self.allCounters:\n self.registeredCounters[counter] = [self.allCounters[counter], []]",
"def dump_counters():\n return query(\"SELECT counter, value FROM counters\")"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for bssid, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/bssid (leafref)
|
def _set_bssid(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 = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """bssid must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)""",
})
self.__bssid = t
if hasattr(self, '_set'):
self._set()
|
[
"def bssid_to_ssid(bssid):\n\tif bssid in ssids:\n\t\treturn ssids[bssid]\n\treturn \"\"",
"def wrapper(self, ap_bssid):\n\n def callback(pkt):\n\n \"\"\"\n performs for every packet the sniffer finds.\n analyzes the packet to find new stations connected to the access point. \n\n Parameters\n ----------\n pkt : packet object\n packet for analysis\n \"\"\"\n\n if pkt.haslayer(Dot11):\n addr1, addr2, addr3 = pkt.addr1, pkt.addr2, pkt.addr3\n # Sanitze and upper all inputs\n sanitizedAddr1 = addr1.upper() if addr1 is not None else ''\n sanitizedAddr2 = addr2.upper() if addr2 is not None else ''\n sanitizedAddr3 = addr3.upper() if addr3 is not None else ''\n\n addresses = (sanitizedAddr1, sanitizedAddr3)\n remove_values = (\"FF:FF:FF:FF:FF:FF\",\"\")\n \n if ap_bssid in addresses and ap_bssid == sanitizedAddr3 and not any(t in addresses for t in remove_values):\n if sanitizedAddr2 not in self.stations:\n self.stations[sanitizedAddr2] = sanitizedAddr3\n print(spacing.format(sanitizedAddr2, sanitizedAddr3))\n else:\n pass\n return callback",
"def test_he_ap_mbssid_open(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n for idx in range(0, 4):\n mbssid_write_bss_params(f, ifname, idx)\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_he_ap_mbssid_mixed_security2(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3, sae_params)\n mbssid_write_bss_params(f, ifname, 4)\n mbssid_write_bss_params(f, ifname, 5, psk_params)\n mbssid_write_bss_params(f, ifname, 6, sae_params)\n mbssid_write_bss_params(f, ifname, 7, owe_params)\n\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def _set_mac(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"mac\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mac must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=unicode, is_leaf=True, yang_name=\"mac\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__mac = t\n if hasattr(self, '_set'):\n self._set()",
"def test_he_ap_mbssid_mixed_security1(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0, sae_params)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3)\n mbssid_write_bss_params(f, ifname, 4, psk_params)\n mbssid_write_bss_params(f, ifname, 5, sae_params)\n mbssid_write_bss_params(f, ifname, 6, owe_params)\n mbssid_write_bss_params(f, ifname, 7)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_prefer_ht20_during_roam(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"0\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].scan(freq=2412)\n dev[0].wait_connected()\n\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")",
"def test_ap_beacon_rate_vht(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000200000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'vht:0')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def test_he_ap_mbssid_same_security(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n for idx in range(0, 2):\n mbssid_write_bss_params(f, ifname, idx, sae_params)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_prefer_ht40(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\",\n \"ht_capab\": \"[HT40+]\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")\n\n est = dev[0].get_bss(bssid)['est_throughput']\n if est != \"65000\":\n raise Exception(\"Unexpected BSS0 est_throughput: \" + est)\n\n est = dev[0].get_bss(bssid2)['est_throughput']\n if est != \"135000\":\n raise Exception(\"Unexpected BSS1 est_throughput: \" + est)",
"def test_prefer_ht20(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"0\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")\n\n est = dev[0].get_bss(bssid)['est_throughput']\n if est != \"54000\":\n raise Exception(\"Unexpected BSS0 est_throughput: \" + est)\n\n est = dev[0].get_bss(bssid2)['est_throughput']\n if est != \"65000\":\n raise Exception(\"Unexpected BSS1 est_throughput: \" + est)",
"def bref(self):\n return BREF(self.data[8:24])",
"def test_ap_beacon_rate_ht2(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:1')\n hapd.set(\"country_code\", \"DE\")\n hapd.set(\"hw_mode\", \"a\")\n hapd.set(\"channel\", \"36\")\n hapd.set(\"ieee80211n\", \"1\")\n hapd.set(\"ieee80211ac\", \"1\")\n hapd.set(\"ht_capab\", \"[HT40+]\")\n hapd.set(\"vht_capab\", \"\")\n hapd.set(\"vht_oper_chwidth\", \"0\")\n hapd.set(\"vht_oper_centr_freq_seg0_idx\", \"0\")\n try:\n hapd.enable()\n dev[0].scan_for_bss(hapd.own_addr(), freq=\"5180\")\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"5180\")\n finally:\n dev[0].request(\"DISCONNECT\")\n hapd.request(\"DISABLE\")\n subprocess.call(['iw', 'reg', 'set', '00'])\n dev[0].flush_scan_cache()",
"def test_hapd_ctrl_set_deny_mac_file(dev, apdev):\n ssid = \"hapd-ctrl\"\n params = { \"ssid\": ssid }\n hapd = hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n dev[1].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n if \"OK\" not in hapd.request(\"SET deny_mac_file hostapd.macaddr\"):\n raise Exception(\"Unexpected SET failure\")\n dev[0].wait_disconnected(timeout=15)\n ev = dev[1].wait_event([\"CTRL-EVENT-DISCONNECTED\"], 1)\n if ev is not None:\n raise Exception(\"Unexpected disconnection\")",
"def backoff_standby_factor(self, backoff_standby_factor: ConfigNodePropertyString):\n\n self._backoff_standby_factor = backoff_standby_factor",
"def _set_band_steering(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"band_steering must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_band_steering_openconfig_wifi_mac__ssids_ssid_band_steering, is_container='container', yang_name=\"band-steering\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__band_steering = t\n if hasattr(self, '_set'):\n self._set()",
"def set_bbs_down(args, results, now):\n\n if args.down_bbs is not None:\n down_bbs = args.down_bbs\n else:\n\n day = now.day\n week_number = int(day/7) + 1\n\n log.debug(f\"day is { day } week_number { week_number }\")\n\n down_bbs = f\"w{ week_number }xsc\"\n\n log.debug(f\"down_bbs is { down_bbs }\")\n results.down_bbs = down_bbs",
"def test_ap_beacon_rate_ht(dev, apdev):\n hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' })\n res = hapd.get_driver_status_field('capa.flags')\n if (int(res, 0) & 0x0000100000000000) == 0:\n raise HwsimSkip(\"Setting Beacon frame TX rate not supported\")\n hapd.disable()\n hapd.set('beacon_rate', 'ht:0')\n hapd.enable()\n dev[0].connect('beacon-rate', key_mgmt=\"NONE\", scan_freq=\"2412\")",
"def _set_neighbor_antenna(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=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_antenna must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"neighbor-antenna\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__neighbor_antenna = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for radio_id, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/radio_id (leafref)
|
def _set_radio_id(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 = YANGDynClass(v,base=six.text_type, is_leaf=True, yang_name="radio-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """radio_id must be of a type compatible with leafref""",
'defined-type': "leafref",
'generated-type': """YANGDynClass(base=six.text_type, is_leaf=True, yang_name="radio-id", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)""",
})
self.__radio_id = t
if hasattr(self, '_set'):
self._set()
|
[
"def _get_radio_id(self):\n return self.__radio_id",
"def set_radio_url(self, radio):\n\n radio_url_dict = read_dict_file(RADIO_URL_FILE)\n\n if radio.lower() in radio_url_dict.keys():\n logger.debug('The radio url is changed')\n self.radio = radio.lower()\n self.url = radio_url_dict[radio.lower()]\n else:\n logger.warning('The radio doesn\\'t exist in the dictionary')",
"def set_radio_channel(self, radio, channel):\n if (radio == 'working') or (radio == '0'):\n (status, null) = self.__device.set_radio_channel(0, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n elif (radio == 'monitor') or (radio == '1'):\n (status, null) = self.__device.set_radio_channel(1, int(channel,0))\n if(status != 0x01):\n print self.__device.decode_error_status(status)\n else:\n print(self.help('set_radio_channel'))",
"def addRadioButton(self, id, label=None):\n\t\tif not label: label = id\n\t\tself.widgets.append(JPLRadioButton(self.centralWidget, id, label))\n\t\tself.labels.append(None)",
"def _set_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=\"id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"id must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=six.text_type, is_leaf=True, yang_name=\"id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__id = t\n if hasattr(self, '_set'):\n self._set()",
"def rating_area_id(self, rating_area_id):\n self._rating_area_id = rating_area_id",
"def _applyRadio(self, config_name, radio):\n for radio_name, rad in radio.items():\n if rad.isChecked():\n self._config['preferences', config_name] = radio_name",
"def wireless_lan_controller_id(self, wireless_lan_controller_id):\n\n self._wireless_lan_controller_id = wireless_lan_controller_id",
"def subnet_id(self, subnet_id):\n # type: (string_types) -> None\n\n if subnet_id is not None:\n if not isinstance(subnet_id, string_types):\n raise TypeError(\"Invalid type for `subnet_id`, type has to be `string_types`\")\n\n self._subnet_id = subnet_id",
"def term_rule_id(self, term_rule_id):\n\n self._term_rule_id = term_rule_id",
"def _set_rbridge_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rbridge_id must be of a type compatible with uint32\"\"\",\n 'defined-type': \"uint32\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\"\"\",\n })\n\n self.__rbridge_id = t\n if hasattr(self, '_set'):\n self._set()",
"def rating_area_id(self):\n return self._rating_area_id",
"def setRadioChannel(self,channel):\n \n data=self.EZSPtrans([0x9A, channel&xFF]);\n return ord(data[5]);",
"def _set_group_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=\"group-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='leafref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"group_id must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=six.text_type, is_leaf=True, yang_name=\"group-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='leafref', is_config=True)\"\"\",\n })\n\n self.__group_id = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_group_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=\"group-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"group_id must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=six.text_type, is_leaf=True, yang_name=\"group-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__group_id = t\n if hasattr(self, '_set'):\n self._set()",
"def radio_version(self) -> Version | None:\n return self._radio_version",
"def reset_radio():\n\t\tcommand = \"reset=0\"\n\t\treturn(str(uart_tx(command)).split(\"\\\\\")[0], str(uart_rx()).split(\"\\\\\")[0])",
"def network_id(self, network_id):\n if network_id is None:\n raise ValueError(\"Invalid value for `network_id`, must not be `None`\")\n\n self._network_id = network_id",
"def get_raxml_phylippath(dir):\n nick = get_msa_nickname(dir)\n return dir + \"/\" + ap.params[\"geneid\"] + SEP + nick + SEP + \"raxml\" + SEP + \"phylip\"",
"def _set_mst_id(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\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=\"mst-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='leafref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mst_id must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=six.text_type, is_leaf=True, yang_name=\"mst-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='leafref', is_config=True)\"\"\",\n })\n\n self.__mst_id = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid/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_ssids_ssid_bssids_bssid_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_buffer_allocation_profiles_buffer_allocation_profile_queues_queue_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_buffer_allocation_profiles_buffer_allocation_profile_queues_queue_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_interfaces__interfaces_interface_subinterfaces_subinterface_ipv6_addresses_address_vrrp_vrrp_group_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_state(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={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_state must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ip:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'DELAY': {}, 'STALE': {}, 'INCOMPLETE': {}, 'PROBE': {}, 'REACHABLE': {}},), is_leaf=True, yang_name=\"neighbor-state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ip', defining_module='openconfig-if-ip', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__neighbor_state = t\n if hasattr(self, '_set'):\n self._set()",
"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_platform__components_component_port_breakout_mode_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_platform__components_component_port_breakout_mode_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_buffer_allocation_profiles_buffer_allocation_profile_queues_queue_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_buffer_allocation_profiles_buffer_allocation_profile_queues_queue_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for bssid, mapped from YANG variable /access_points/access_point/ssids/ssid/bssids/bssid (list)
|
def _set_bssid(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGListType("radio_id bssid",yc_bssid_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid, yang_name="bssid", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='radio-id bssid', extensions=None), is_container='list', yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """bssid must be of a type compatible with list""",
'defined-type': "list",
'generated-type': """YANGDynClass(base=YANGListType("radio_id bssid",yc_bssid_openconfig_access_points__access_points_access_point_ssids_ssid_bssids_bssid, yang_name="bssid", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='radio-id bssid', extensions=None), is_container='list', yang_name="bssid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='list', is_config=True)""",
})
self.__bssid = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_bssid(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n \" within an instantiated list\")\n\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=\"bssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"bssid must be of a type compatible with leafref\"\"\",\n 'defined-type': \"leafref\",\n 'generated-type': \"\"\"YANGDynClass(base=six.text_type, is_leaf=True, yang_name=\"bssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, is_keyval=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='leafref', is_config=False)\"\"\",\n })\n\n self.__bssid = t\n if hasattr(self, '_set'):\n self._set()",
"def bssid_to_ssid(bssid):\n\tif bssid in ssids:\n\t\treturn ssids[bssid]\n\treturn \"\"",
"def _get_bssids(self):\n return self.__bssids",
"def _set_ssid(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGListType(\"name\",yc_ssid_openconfig_wifi_mac__ssids_ssid, yang_name=\"ssid\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name=\"ssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='list', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ssid must be of a type compatible with list\"\"\",\n 'defined-type': \"list\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGListType(\"name\",yc_ssid_openconfig_wifi_mac__ssids_ssid, yang_name=\"ssid\", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='name', extensions=None), is_container='list', yang_name=\"ssid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='list', is_config=True)\"\"\",\n })\n\n self.__ssid = t\n if hasattr(self, '_set'):\n self._set()",
"def wrapper(self, ap_bssid):\n\n def callback(pkt):\n\n \"\"\"\n performs for every packet the sniffer finds.\n analyzes the packet to find new stations connected to the access point. \n\n Parameters\n ----------\n pkt : packet object\n packet for analysis\n \"\"\"\n\n if pkt.haslayer(Dot11):\n addr1, addr2, addr3 = pkt.addr1, pkt.addr2, pkt.addr3\n # Sanitze and upper all inputs\n sanitizedAddr1 = addr1.upper() if addr1 is not None else ''\n sanitizedAddr2 = addr2.upper() if addr2 is not None else ''\n sanitizedAddr3 = addr3.upper() if addr3 is not None else ''\n\n addresses = (sanitizedAddr1, sanitizedAddr3)\n remove_values = (\"FF:FF:FF:FF:FF:FF\",\"\")\n \n if ap_bssid in addresses and ap_bssid == sanitizedAddr3 and not any(t in addresses for t in remove_values):\n if sanitizedAddr2 not in self.stations:\n self.stations[sanitizedAddr2] = sanitizedAddr3\n print(spacing.format(sanitizedAddr2, sanitizedAddr3))\n else:\n pass\n return callback",
"def test_he_ap_mbssid_mixed_security2(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3, sae_params)\n mbssid_write_bss_params(f, ifname, 4)\n mbssid_write_bss_params(f, ifname, 5, psk_params)\n mbssid_write_bss_params(f, ifname, 6, sae_params)\n mbssid_write_bss_params(f, ifname, 7, owe_params)\n\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_he_ap_mbssid_mixed_security1(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n psk_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"WPA-PSK\"}\n\n owe_params = {\"wpa\": \"2\", \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"OWE\"}\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n mbssid_write_bss_params(f, ifname, 0, sae_params)\n mbssid_write_bss_params(f, ifname, 1, psk_params)\n mbssid_write_bss_params(f, ifname, 2, owe_params)\n mbssid_write_bss_params(f, ifname, 3)\n mbssid_write_bss_params(f, ifname, 4, psk_params)\n mbssid_write_bss_params(f, ifname, 5, sae_params)\n mbssid_write_bss_params(f, ifname, 6, owe_params)\n mbssid_write_bss_params(f, ifname, 7)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def add_denylist(self, mac):\n self._req('denylist add %s' % mac)",
"def test_he_ap_mbssid_same_security(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n\n sae_params = {\"wpa\": \"2\", \"wpa_passphrase\": \"12345678\",\n \"wpa_pairwise\": \"CCMP\", \"wpa_key_mgmt\": \"SAE\",\n \"sae_pwe\": \"1\", \"ieee80211w\": \"2\"}\n\n for idx in range(0, 2):\n mbssid_write_bss_params(f, ifname, idx, sae_params)\n\n f.close()\n\n try:\n dev[0].set(\"sae_pwe\", \"1\")\n dev[0].set(\"sae_groups\", \"\")\n sta_params = {\"psk\": \"12345678\", \"key_mgmt\": \"SAE\", \"ieee80211w\": \"2\",\n \"pairwise\": \"CCMP\", \"group\": \"CCMP\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n dev[0].set(\"sae_pwe\", \"0\")\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def test_he_ap_mbssid_open(dev, apdev, params):\n f, fname, ifname = mbssid_create_cfg_file(apdev, params)\n for idx in range(0, 4):\n mbssid_write_bss_params(f, ifname, idx)\n f.close()\n\n try:\n sta_params = {\"key_mgmt\": \"NONE\", \"scan_freq\": \"2412\"}\n mbssid_start_ap(dev, apdev, params, fname, ifname, sta_params)\n finally:\n subprocess.call(['ip', 'link', 'set', 'dev', apdev[0]['ifname'],\n 'address', apdev[0]['bssid']])",
"def update_black_macs(self, output_fp):\n\n output_fp.write('macaddr_acl=0\\n')\n output_fp.write('deny_mac_file='+hostapd_constants.DENY_MACS_PATH+'\\n')\n with open(hostapd_constants.DENY_MACS_PATH, 'w') as writer:\n for mac_addr in self.configuration_dict['deny_macs']:\n writer.write(mac_addr+'\\n')",
"def test_prefer_ht20_during_roam(dev, apdev):\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"0\" }\n hapd = hostapd.add_ap(apdev[0], params)\n bssid = apdev[0]['bssid']\n\n dev[0].scan_for_bss(bssid, freq=2412)\n dev[0].connect(\"test\", key_mgmt=\"NONE\", scan_freq=\"2412\")\n\n params = { \"ssid\": \"test\",\n \"channel\": \"1\",\n \"ieee80211n\": \"1\" }\n hapd2 = hostapd.add_ap(apdev[1], params)\n bssid2 = apdev[1]['bssid']\n dev[0].scan_for_bss(bssid2, freq=2412)\n dev[0].scan(freq=2412)\n dev[0].wait_connected()\n\n if dev[0].get_status_field('bssid') != bssid2:\n raise Exception(\"Unexpected BSS selected\")",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def get_blacklist(self, name: str) -> List[str]:\n q = {\"_id\": name}\n cols = {\"_id\": 1, \"blacklist\": 1, \"type\": 1, \"input_playlist\": 1}\n return list(self._blacklists.find(q, cols))",
"async def blacklist_view(self, ctx: commands.Context):\r\n blacklisted = await self.config.blacklisted() or [\"None\"]\r\n await ctx.author.send(\r\n f\"The following IP addresses are blocked: {humanize_list(blacklisted)}\"\r\n )",
"def test_hapd_ctrl_set_deny_mac_file(dev, apdev):\n ssid = \"hapd-ctrl\"\n params = { \"ssid\": ssid }\n hapd = hostapd.add_ap(apdev[0], params)\n dev[0].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n dev[1].connect(ssid, key_mgmt=\"NONE\", scan_freq=\"2412\")\n if \"OK\" not in hapd.request(\"SET deny_mac_file hostapd.macaddr\"):\n raise Exception(\"Unexpected SET failure\")\n dev[0].wait_disconnected(timeout=15)\n ev = dev[1].wait_event([\"CTRL-EVENT-DISCONNECTED\"], 1)\n if ev is not None:\n raise Exception(\"Unexpected disconnection\")",
"def eventrecorder_blacklist(self, eventrecorder_blacklist: ConfigNodePropertyArray):\n\n self._eventrecorder_blacklist = eventrecorder_blacklist",
"def _set_ssids(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_ssids_openconfig_wifi_mac__ssids, is_container='container', yang_name=\"ssids\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ssids must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_ssids_openconfig_wifi_mac__ssids, is_container='container', yang_name=\"ssids\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__ssids = t\n if hasattr(self, '_set'):\n self._set()",
"async def list(self, ctx):\n keylist = []\n try:\n for key in data[ctx.message.server.id].keys():\n keylist.append(key)\n keylist = ', '.join(keylist)\n await self.Aya.say('Blacklisted words: \\n`' + keylist + '`')\n except KeyError:\n await self.Aya.say('You must add a word to the blacklist before invoking this command.')",
"def update_blacklist(self, blacklist_name: str, artists: List[str]) -> None:\n q = {\"_id\": blacklist_name}\n [\n self._blacklists.update_one(q, {\"$addToSet\": {\"blacklist\": x}})\n for x in artists\n ]"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_vo_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/config/wmm_vo_remark (uint8)
|
def _set_wmm_vo_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vo-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_vo_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vo-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)""",
})
self.__wmm_vo_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def xmms2_comment(self):\n self.writeCommand('xmms2_comment')\n return self",
"def test_validate_remarks(session, desc, valid, doc_type, remarks, mhr_num, account, message_content):\n # setup\n json_data = get_valid_registration()\n json_data['note']['documentType'] = doc_type\n if remarks:\n json_data['note']['remarks'] = remarks\n else:\n del json_data['note']['remarks']\n if doc_type == 'NCAN' and mhr_num == '045718':\n json_data['cancelDocumentId'] = '43641595'\n del json_data['note']['effectiveDateTime']\n registration: MhrRegistration = MhrRegistration.find_by_mhr_number(mhr_num, account)\n error_msg = validator.validate_note(registration, json_data, True, STAFF_ROLE)\n current_app.logger.debug(error_msg)\n if valid:\n assert error_msg == ''\n else:\n assert error_msg != ''\n if message_content:\n assert error_msg.find(message_content) != -1",
"def seq_control_change(self, msg: mido.Message):\n if self._config.cc and msg.control in self._config.cc:\n variable = self._config.cc[msg.control]\n value = midi_to_base_36(msg.value)\n self.forwarder.find(f\"{variable}V\")\n self.forwarder.write(f\"{variable}V{value}\")\n else:\n self.forwarder.write_midi_cc(\n msg,\n with_midi_cc_operator=self._config.with_midi_operator\n )",
"def modify_memo(self,note_id,memo):\n\n self._find_note(note_id).memo = memo",
"def test_mm2cm(self):\n v = 2.0\n r = conversion.mm2cm(v)\n self.assertTrue(r == v*0.1)",
"def test_cm2mm(self):\n v = 2.0\n r = conversion.cm2mm(v)\n self.assertTrue(r == v*10.0)",
"def get_reg_ctrl_meas(self):\n return ((self.to & 0x07) << 5) | ((self.po & 0x07) << 2) | self.mode",
"def get_msg_markdown(self):\n return adapt_markdown(self.msg, lowercase=False)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_vi_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/config/wmm_vi_remark (uint8)
|
def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vi-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_vi_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vi-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)""",
})
self.__wmm_vi_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def xmms2_comment(self):\n self.writeCommand('xmms2_comment')\n return self",
"def get_msg_markdown(self):\n return adapt_markdown(self.msg, lowercase=False)",
"def set_emissivity(self, emv, per_mil=True):\n\n v = emv * 10.0 if per_mil else emv\n cmd = self._build_command(\"em\", value=v, per_mil=per_mil)\n\n resp = self._parse_response(self.ask(cmd), response_type=\"text\")\n if resp is not None or self.simulation:\n self._emissivity = emv",
"def __UpdateColumnComment(self):\n getLogger().debug('__UpdateColumnContent() executing ..')\n if self._readOnly is False:\n getLogger().debug(\"__UpdateColumnComment() executing\")\n\n for limitSpecName in self._allMandateDetailDict:\n mandate = self._allMandateDetailDict.At(limitSpecName)\n if len(self._mandatoryMandateMissing) != 0:\n behaviour = 'Mandatory mandate missing %s. Blocking trade' % self._mandatoryMandateMissing\n elif self.__IsBlockingMandateBreached() is True:\n behaviour = 'At least 1 blocking mandate failed. Blocking trade'\n else:\n behaviour = mandate.GetBehaviour()[1]\n\n # pylint: disable=no-member\n self.__SetCellSimulatedValue(acm.FLimit[mandate.LimitOid()], 'Mandate Fail Comment', behaviour)",
"def mcuVersion(self):\r\n self.mcuserial.write('v' + chr(0) + chr(0))\r\n return self.mcuserial.read(30)",
"def setIpNote(self, ip_id, note):\n ip = {\n 'id': ip_id,\n 'note': note,\n }\n try:\n return self.client['SoftLayer_Network_Subnet_IpAddress'].editObject(ip,id=ip_id)\n # return True\n except SoftLayer.SoftLayerAPIError as e:\n if self.isAPIError_ObjNotFound(e):\n return False\n raise e",
"async def change_desc_step_3(message: types.Message, state: FSMContext):\n eq_id = await state.get_data()\n eq_id = eq_id['eq_id']\n equipment.change_equipment_description(eq_id, message.text)\n await bot.send_message(chat_id=message.chat.id,\n text='Описание техники было успешно изменено')\n await state.finish()",
"def modify_memo(self,note_id,memo):\n\n self._find_note(note_id).memo = memo"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_bk_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/config/wmm_bk_remark (uint8)
|
def _set_wmm_bk_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-bk-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_bk_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-bk-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)""",
})
self.__wmm_bk_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def set_bpm(self, bpm, downbeat):\n\t\tassert downbeat is not None\n\t\tself.bpm = bpm\n\t\tself.downbeat = downbeat",
"def ram_in_mb(self, ram_in_mb):\n if ram_in_mb is None:\n raise ValueError(\"Invalid value for `ram_in_mb`, must not be `None`\") # noqa: E501\n\n self._ram_in_mb = ram_in_mb",
"def validate008(self,marc_record):\n field008 = marc_record.get_fields('008')[0]\n marc_record = self.__remove_field__(marc_record=marc_record,tag='008')\n field_data_list = []\n for i in field008.data:\n field_data_list.append(i)\n field_data_list[23] = 'o'\n field008.data = ''.join(field_data_list)\n marc_record.add_field(field008)\n return marc_record",
"def __UpdateColumnComment(self):\n getLogger().debug('__UpdateColumnContent() executing ..')\n if self._readOnly is False:\n getLogger().debug(\"__UpdateColumnComment() executing\")\n\n for limitSpecName in self._allMandateDetailDict:\n mandate = self._allMandateDetailDict.At(limitSpecName)\n if len(self._mandatoryMandateMissing) != 0:\n behaviour = 'Mandatory mandate missing %s. Blocking trade' % self._mandatoryMandateMissing\n elif self.__IsBlockingMandateBreached() is True:\n behaviour = 'At least 1 blocking mandate failed. Blocking trade'\n else:\n behaviour = mandate.GetBehaviour()[1]\n\n # pylint: disable=no-member\n self.__SetCellSimulatedValue(acm.FLimit[mandate.LimitOid()], 'Mandate Fail Comment', behaviour)",
"def minikb(kb_name: str, mini_text: str = '. . .') -> InlineKeyboardMarkup:\n kb = InlineKeyboardMarkup()\n kb.add(\n InlineKeyboardButton(\n mini_text, callback_data=ydump({'action': 'restore', 'kb_name': kb_name})\n ),\n BEGONE_BUTTON,\n )\n return kb",
"def read_mbr(self):\n\n\t\tself.volume_object.seek(0)\n\t\tbuf = self.volume_object.read(512)\n\n\t\tif len(buf) != 512:\n\t\t\traise ValueError('Cannot read the MBR code and data')\n\n\t\tif struct.unpack('<H', buf[510 : 512])[0] != 0xAA55:\n\t\t\traise ValueError('Boot signature not found')\n\n\t\tis_boot_code_present = buf[0] != 0 and buf[1] != 0\n\t\tdisk_signature = struct.unpack('<L', buf[440 : 444])[0]\n\n\t\treturn StandardMBR(is_boot_code_present, disk_signature)",
"def test_validate_remarks(session, desc, valid, doc_type, remarks, mhr_num, account, message_content):\n # setup\n json_data = get_valid_registration()\n json_data['note']['documentType'] = doc_type\n if remarks:\n json_data['note']['remarks'] = remarks\n else:\n del json_data['note']['remarks']\n if doc_type == 'NCAN' and mhr_num == '045718':\n json_data['cancelDocumentId'] = '43641595'\n del json_data['note']['effectiveDateTime']\n registration: MhrRegistration = MhrRegistration.find_by_mhr_number(mhr_num, account)\n error_msg = validator.validate_note(registration, json_data, True, STAFF_ROLE)\n current_app.logger.debug(error_msg)\n if valid:\n assert error_msg == ''\n else:\n assert error_msg != ''\n if message_content:\n assert error_msg.find(message_content) != -1",
"def xmms2_comment(self):\n self.writeCommand('xmms2_comment')\n return self"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for trust_dscp, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/state/trust_dscp (boolean)
|
def _set_trust_dscp(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="trust-dscp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """trust_dscp must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, default=YANGBool("true"), is_leaf=True, yang_name="trust-dscp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__trust_dscp = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_trust_dscp(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"trust-dscp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"trust_dscp must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"trust-dscp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__trust_dscp = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_trust_dscp(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"trust-dscp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"trust_dscp must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, default=YANGBool(\"true\"), is_leaf=True, yang_name=\"trust-dscp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__trust_dscp = t\n if hasattr(self, '_set'):\n self._set()",
"def is_pds_state(self, *args):\n return _wali.WPDS_is_pds_state(self, *args)",
"def is_trusted(self, host, trust):\n raise NotImplementedError()",
"def trust(self, trust):\n\n self._trust = trust",
"def dnssec(self):\n return _ldns.ldns_resolver_dnssec(self)\n #parameters: const ldns_resolver *,\n #retvals: bool",
"def trusted_credentials_attribute(self) -> ConfigNodePropertyString:\n return self._trusted_credentials_attribute",
"def trusted_credentials_attribute(self, trusted_credentials_attribute: ConfigNodePropertyString):\n\n self._trusted_credentials_attribute = trusted_credentials_attribute",
"def enable_ultra_ssd(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self, \"enable_ultra_ssd\")",
"def is_trusted_issuer(self, hostname, issuer):\n return self.supportdocs.is_trusted_issuer(hostname, issuer,\n self.trusted_secondaries)",
"def is_in_weierstrass_disc(self,P):\n if (P[1].valuation() == 0 and P != self(0,1,0)):\n return False\n else:\n return True",
"def _set_rstp(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_rstp_openconfig_spanning_tree__stp_rstp, is_container='container', yang_name=\"rstp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rstp must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_rstp_openconfig_spanning_tree__stp_rstp, is_container='container', yang_name=\"rstp\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__rstp = t\n if hasattr(self, '_set'):\n self._set()",
"def puppet_signcsr(config, vm_fqdn):\n print \"Attempting to sign node CSR...\"\n pson = puppet_findcsr(config, vm_fqdn)\n\n # sanity check result a litle bit\n if not pson:\n return False\n\n try:\n if pson['state'] != 'requested':\n if pson['state'] == 'signed':\n warn(\"A certificate with this subject name has already \"\n \"been signed.\")\n else:\n warn(\"Certificate in unexpected \"\n \"state: {}\".format(pson['state']))\n return False\n except KeyError:\n warn(\"API returned unexpected data: {}\".format(pson))\n return False\n\n # Sign node CSR\n url = \"{}/{}/certificate_status/{}\".format(config['puppet_url'],\n config['puppet_environment'],\n vm_fqdn)\n headers = {'Content-Type': 'text/pson'}\n payload = '{\"desired_state\": \"signed\"}'\n resp = puppet_api_call(url, 'put', config, headers=headers, data=payload)\n if resp is not None:\n print \"Certificate signed. Node will run catalog at next interval.\"\n return True\n else:\n warn(\"Couldn't sign node CSR\")\n return False",
"def set_cd(self, b):\n _ldns.ldns_pkt_set_cd(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: ",
"def is_dcp(self):\n return all(\n expr.is_dcp() for expr in self.constraints + [self.objective])",
"def is_trusted(trust_root, by=None):\n if by == None: by = web.session.user\n trust_db = TrustDB(by)\n approval = trust_db[trust_root]\n if approval == TrustDB.APPROVED_ONCE:\n del trust_db[trust_root]\n return approval",
"def setdtr(self, dtr):\n try:\n self.ser.setDTR(dtr)\n self.log(\"DTR set to \"+`dtr`)\n return True\n except SilentException:\n return False",
"def is_dcp(self):\n return self.args[0].is_convex()",
"def devops_secure_status(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"devops_secure_status\")",
"def set_tc(self, b):\n _ldns.ldns_pkt_set_tc(self, b)\n #parameters: ldns_pkt *,bool,\n #retvals: "
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_vo_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/state/wmm_vo_remark (uint8)
|
def _set_wmm_vo_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vo-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_vo_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vo-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__wmm_vo_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def xmms2_comment(self):\n self.writeCommand('xmms2_comment')\n return self",
"def test_validate_remarks(session, desc, valid, doc_type, remarks, mhr_num, account, message_content):\n # setup\n json_data = get_valid_registration()\n json_data['note']['documentType'] = doc_type\n if remarks:\n json_data['note']['remarks'] = remarks\n else:\n del json_data['note']['remarks']\n if doc_type == 'NCAN' and mhr_num == '045718':\n json_data['cancelDocumentId'] = '43641595'\n del json_data['note']['effectiveDateTime']\n registration: MhrRegistration = MhrRegistration.find_by_mhr_number(mhr_num, account)\n error_msg = validator.validate_note(registration, json_data, True, STAFF_ROLE)\n current_app.logger.debug(error_msg)\n if valid:\n assert error_msg == ''\n else:\n assert error_msg != ''\n if message_content:\n assert error_msg.find(message_content) != -1",
"def get_reg_ctrl_meas(self):\n return ((self.to & 0x07) << 5) | ((self.po & 0x07) << 2) | self.mode",
"def modify_memo(self,note_id,memo):\n\n self._find_note(note_id).memo = memo",
"def test_mm2cm(self):\n v = 2.0\n r = conversion.mm2cm(v)\n self.assertTrue(r == v*0.1)",
"def test_cm2mm(self):\n v = 2.0\n r = conversion.cm2mm(v)\n self.assertTrue(r == v*10.0)",
"def seq_control_change(self, msg: mido.Message):\n if self._config.cc and msg.control in self._config.cc:\n variable = self._config.cc[msg.control]\n value = midi_to_base_36(msg.value)\n self.forwarder.find(f\"{variable}V\")\n self.forwarder.write(f\"{variable}V{value}\")\n else:\n self.forwarder.write_midi_cc(\n msg,\n with_midi_cc_operator=self._config.with_midi_operator\n )",
"def reason(self) -> str:\n return self._video_reason"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_vi_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/state/wmm_vi_remark (uint8)
|
def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vi-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_vi_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-vi-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__wmm_vi_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def xmms2_comment(self):\n self.writeCommand('xmms2_comment')\n return self",
"async def change_desc_step_3(message: types.Message, state: FSMContext):\n eq_id = await state.get_data()\n eq_id = eq_id['eq_id']\n equipment.change_equipment_description(eq_id, message.text)\n await bot.send_message(chat_id=message.chat.id,\n text='Описание техники было успешно изменено')\n await state.finish()",
"def format_vsm(self):\n data = self.machine_data.out_backfield()\n header = self.machine_data.header\n\n #check for IRM acquisition\n if self.machine_data.measurement_header['SCRIPT']['Include IRM?'] == 'Yes':\n self._raw_data['remanence'] = RockPyData(column_names=['field', 'mag'], data=data[0][:, [0, 1]])",
"def get_msg_markdown(self):\n return adapt_markdown(self.msg, lowercase=False)",
"def mcuVersion(self):\r\n self.mcuserial.write('v' + chr(0) + chr(0))\r\n return self.mcuserial.read(30)",
"def modify_memo(self,note_id,memo):\n\n self._find_note(note_id).memo = memo",
"def testM(self, b, u):\n i = 0\n while i < len(u):\n i = u.find('\\\\m\\n', i)\n if i == -1: return\n if not u[i + 3] == '\\\\': print('\\\\m tag with no text content in: ' + b)\n i = i + 3",
"def set_emissivity(self, emv, per_mil=True):\n\n v = emv * 10.0 if per_mil else emv\n cmd = self._build_command(\"em\", value=v, per_mil=per_mil)\n\n resp = self._parse_response(self.ask(cmd), response_type=\"text\")\n if resp is not None or self.simulation:\n self._emissivity = emv"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for wmm_bk_remark, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/state/wmm_bk_remark (uint8)
|
def _set_wmm_bk_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-bk-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """wmm_bk_remark must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name="wmm-bk-remark", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__wmm_bk_remark = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_bk_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_bk_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-bk-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_bk_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_be_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_be_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-be-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_be_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vo_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vo_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vo-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vo_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=True)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm_vi_remark(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=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm_vi_remark must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(unique=True, base=TypedListType(allowed_type=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8)), is_leaf=False, yang_name=\"wmm-vi-remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__wmm_vi_remark = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_remark(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"remark must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_remark_openconfig_qos_mem_mgmt__qos_classifiers_classifier_terms_term_actions_remark, is_container='container', yang_name=\"remark\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__remark = t\n if hasattr(self, '_set'):\n self._set()",
"def specific_remark(self, specific_remark):\n\n self._specific_remark = specific_remark",
"def set_bpm(self, bpm, downbeat):\n\t\tassert downbeat is not None\n\t\tself.bpm = bpm\n\t\tself.downbeat = downbeat",
"def minikb(kb_name: str, mini_text: str = '. . .') -> InlineKeyboardMarkup:\n kb = InlineKeyboardMarkup()\n kb.add(\n InlineKeyboardButton(\n mini_text, callback_data=ydump({'action': 'restore', 'kb_name': kb_name})\n ),\n BEGONE_BUTTON,\n )\n return kb",
"def ram_in_mb(self, ram_in_mb):\n if ram_in_mb is None:\n raise ValueError(\"Invalid value for `ram_in_mb`, must not be `None`\") # noqa: E501\n\n self._ram_in_mb = ram_in_mb",
"def read_mbr(self):\n\n\t\tself.volume_object.seek(0)\n\t\tbuf = self.volume_object.read(512)\n\n\t\tif len(buf) != 512:\n\t\t\traise ValueError('Cannot read the MBR code and data')\n\n\t\tif struct.unpack('<H', buf[510 : 512])[0] != 0xAA55:\n\t\t\traise ValueError('Boot signature not found')\n\n\t\tis_boot_code_present = buf[0] != 0 and buf[1] != 0\n\t\tdisk_signature = struct.unpack('<L', buf[440 : 444])[0]\n\n\t\treturn StandardMBR(is_boot_code_present, disk_signature)",
"def validate008(self,marc_record):\n field008 = marc_record.get_fields('008')[0]\n marc_record = self.__remove_field__(marc_record=marc_record,tag='008')\n field_data_list = []\n for i in field008.data:\n field_data_list.append(i)\n field_data_list[23] = 'o'\n field008.data = ''.join(field_data_list)\n marc_record.add_field(field008)\n return marc_record",
"def test_validate_remarks(session, desc, valid, doc_type, remarks, mhr_num, account, message_content):\n # setup\n json_data = get_valid_registration()\n json_data['note']['documentType'] = doc_type\n if remarks:\n json_data['note']['remarks'] = remarks\n else:\n del json_data['note']['remarks']\n if doc_type == 'NCAN' and mhr_num == '045718':\n json_data['cancelDocumentId'] = '43641595'\n del json_data['note']['effectiveDateTime']\n registration: MhrRegistration = MhrRegistration.find_by_mhr_number(mhr_num, account)\n error_msg = validator.validate_note(registration, json_data, True, STAFF_ROLE)\n current_app.logger.debug(error_msg)\n if valid:\n assert error_msg == ''\n else:\n assert error_msg != ''\n if message_content:\n assert error_msg.find(message_content) != -1",
"def extract_mx_rdata(msg, offset, rdlength):\n\n preference = unpack_from(\">H\", msg, offset)\n offset += 2\n \n fmt_str = \">\" + \"B\" * (rdlength - 2)\n rdata = unpack_from(fmt_str, msg, offset)[0]\n\n mail_ex = ''\n for byte in rdata:\n mail_ex += chr(byte)\n mail_ex += '\\x00'\n\n return (preference, mail_ex)",
"def __UpdateColumnComment(self):\n getLogger().debug('__UpdateColumnContent() executing ..')\n if self._readOnly is False:\n getLogger().debug(\"__UpdateColumnComment() executing\")\n\n for limitSpecName in self._allMandateDetailDict:\n mandate = self._allMandateDetailDict.At(limitSpecName)\n if len(self._mandatoryMandateMissing) != 0:\n behaviour = 'Mandatory mandate missing %s. Blocking trade' % self._mandatoryMandateMissing\n elif self.__IsBlockingMandateBreached() is True:\n behaviour = 'At least 1 blocking mandate failed. Blocking trade'\n else:\n behaviour = mandate.GetBehaviour()[1]\n\n # pylint: disable=no-member\n self.__SetCellSimulatedValue(acm.FLimit[mandate.LimitOid()], 'Mandate Fail Comment', behaviour)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for config, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/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_ssids_ssid_wmm_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_access_points__access_points_access_point_ssids_ssid_wmm_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_wmm(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"wmm must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_wmm_openconfig_wifi_mac__ssids_ssid_wmm, is_container='container', yang_name=\"wmm\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__wmm = t\n if hasattr(self, '_set'):\n self._set()",
"def set_wlan_config(self, session_id, node_id, config):\n request = core_pb2.SetWlanConfigRequest(session_id=session_id, node_id=node_id, config=config)\n return self.stub.SetWlanConfig(request)",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def get_wlan_config(self, session_id, node_id):\n request = core_pb2.GetWlanConfigRequest(session_id=session_id, node_id=node_id)\n return self.stub.GetWlanConfig(request)",
"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_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_platform__components_component_port_breakout_mode_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_platform__components_component_port_breakout_mode_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_mem_mgmt__qos_queue_management_profiles_queue_management_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_mem_mgmt__qos_queue_management_profiles_queue_management_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/ssids/ssid/wmm/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_ssids_ssid_wmm_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_ssids_ssid_wmm_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def setstate(self, state):\n if state not in VALID_STATES:\n states = ', '.join(VALID_STATES)\n raise ValueError(\"Wrong state, allowed states {}\".format(states))\n if state in ('enable', 'disable'):\n cmd = \"{} server {}/{}\".format(state, self.backendname, self.name)\n else:\n cmd = \"set server {}/{} state {}\".format(\n self.backendname, self.name, state\n )\n\n results = cmd_across_all_procs(self._server_per_proc, 'command', cmd)\n\n return check_command(results)",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_platform__components_component_port_breakout_mode_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_platform__components_component_port_breakout_mode_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_mem_mgmt__qos_queue_management_profiles_queue_management_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_mem_mgmt__qos_queue_management_profiles_queue_management_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11r, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/config/dot11r (boolean)
|
def _set_dot11r(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11r", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11r must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11r", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dot11r = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_method(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'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_method must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__dot11r_method = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_method(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'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_method must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__dot11r_method = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k_neighbors(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k_neighbors must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__dot11k_neighbors = t\n if hasattr(self, '_set'):\n self._set()",
"def wabl_set_lqr_x_dot(new_kx_dot):\n #pack float as byte array\n new_kx_dot_bytes = struct.pack('f', new_kx_dot)\n\n ser.write(header)\n ser.write(x_dot_command)\n for byte in new_kx_dot_bytes:\n ser.write(bytes(byte))",
"def _set_dot11r_r1key_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-r1key-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_r1key_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-r1key-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__dot11r_r1key_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_r1key_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-r1key-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_r1key_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-r1key-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__dot11r_r1key_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def equals(self, r: 'SbDPRotation', tolerance: 'double') -> \"SbBool\":\n return _coin.SbDPRotation_equals(self, r, tolerance)",
"def restartEnabled(self):\r\n\r\n import CompuCellSetup\r\n import re\r\n if re.match(\".*\\.cc3d$\", str(CompuCellSetup.simulationFileName)):\r\n\r\n print \"EXTRACTING restartEnabled\"\r\n\r\n import CC3DSimulationDataHandler\r\n\r\n cc3dSimulationDataHandler = CC3DSimulationDataHandler.CC3DSimulationDataHandler()\r\n cc3dSimulationDataHandler.readCC3DFileFormat(str(CompuCellSetup.simulationFileName))\r\n\r\n return cc3dSimulationDataHandler.cc3dSimulationData.restartEnabled()\r\n\r\n return False",
"def setLinesSurroundingDot(self, r, c, key):\n self.setLineVal(r, c, True, key, False)\n self.setLineVal(r-1, c, True, key, False)\n self.setLineVal(r, c, False, key, False)\n self.setLineVal(r, c-1, False, key, False)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11r_domainid, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/config/dot11r_domainid (uint16)
|
def _set_dot11r_domainid(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="dot11r-domainid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11r_domainid must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="dot11r-domainid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)""",
})
self.__dot11r_domainid = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def nfsv4_id_domain(self):\n return self._nfsv4_id_domain",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _insert_domain_id_if_needed(self, ref, driver, domain_id, conf):\n if not driver.is_domain_aware():\n if domain_id is None:\n domain_id = conf.default_domain_id\n ref['domain_id'] = domain_id",
"def setDomain(self, domain):\n self[Header.PARAM_DOMAIN] = domain",
"def _set_rbridge_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rbridge_id must be of a type compatible with uint32\"\"\",\n 'defined-type': \"uint32\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\"\"\",\n })\n\n self.__rbridge_id = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_lsp_id(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 ),\n is_leaf=True,\n yang_name=\"lsp-id\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/network-instance\",\n defining_module=\"openconfig-network-instance\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"lsp_id must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"lsp-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__lsp_id = t\n if hasattr(self, \"_set\"):\n self._set()",
"def _get_domain_for_node(self, node):\r\n domain = self.connection.lookupByUUIDString(node.uuid)\r\n return domain",
"def get_domain_section(self, domain):\n return 'domain/' + domain",
"def _set_tunnel_id(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 ),\n is_leaf=True,\n yang_name=\"tunnel-id\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/network-instance\",\n defining_module=\"openconfig-network-instance\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"tunnel_id must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"tunnel-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__tunnel_id = t\n if hasattr(self, \"_set\"):\n self._set()",
"def punycode(domain: str):\n return domain.encode('idna').decode('ascii')",
"def convert_measurement_directory_n_el_16_r_split(\n lpath: str, s_dict_n_el_16: dict\n) -> None:\n for r_splits in get_radial_positions(lpath):\n convert_measurement_directory_n_el_16(\n lpath=lpath,\n s_dict_n_el_16=s_dict_n_el_16,\n r_split=r_splits,\n export_csv=True,\n )",
"def domain(self, domain):\n\t\tself.domain = domain",
"def get_domain(entity_id):\n return entity_id.split('.')[0]",
"def is_valid_domain_id(id_str: str) -> bool:\n return re.match('([0-9][a-zA-Z0-9]{3})([a-zA-Z0-9])([0-9]{2})$', id_str)",
"def set_id(self, id):\n _ldns.ldns_pkt_set_id(self, id)\n #parameters: ldns_pkt *,uint16_t,\n #retvals: ",
"def get_coordinated_domain_id(*, selector=None):\n if selector is None:\n selector = _default_selector()\n\n # Try 100 times to get a unique ROS domain ID. The default number of parallel colcon\n # test runners is 12, so it's extremely unlikely that more than 12 ROS_DOMAIN_IDs need\n # to be coordinated at once.\n for attempt in range(100):\n s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n try:\n s.bind(('', _PORT_BASE + selector()))\n except OSError:\n continue\n else:\n return _sockwrapper(s)\n else:\n raise Exception('Failed to get a unique domain ID')"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11r, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/state/dot11r (boolean)
|
def _set_dot11r(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11r", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11r must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11r", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dot11r = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_method(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'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_method must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__dot11r_method = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_method(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'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_method must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'ODS': {}, u'OVA': {}},), default=unicode(\"OVA\"), is_leaf=True, yang_name=\"dot11r-method\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__dot11r_method = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def wabl_set_lqr_x_dot(new_kx_dot):\n #pack float as byte array\n new_kx_dot_bytes = struct.pack('f', new_kx_dot)\n\n ser.write(header)\n ser.write(x_dot_command)\n for byte in new_kx_dot_bytes:\n ser.write(bytes(byte))",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def setActive( self, state ):\r\n\t\tif ( state ):\r\n\t\t\tself._nativePointer.current = True\r\n\t\telse:\r\n\t\t\tmxs.layerManager.getLayer(0).current = True\r\n\r\n\t\treturn self._nativePointer.current",
"def equals(self, r: 'SbDPRotation', tolerance: 'double') -> \"SbBool\":\n return _coin.SbDPRotation_equals(self, r, tolerance)",
"def verify_ringing(self, call_state=\"RingBack\"):\n _state = self.get_call_state()\n _val = self.get_node_value(_state, \"CallState\")\n if _val == call_state:\n return True\n else:\n log.debug(\"Verifying ringing failed.\")\n return False",
"def _set_dot11k_neighbors(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k_neighbors must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11k_neighbors_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors, is_container='container', yang_name=\"dot11k-neighbors\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__dot11k_neighbors = t\n if hasattr(self, '_set'):\n self._set()",
"def restartEnabled(self):\r\n\r\n import CompuCellSetup\r\n import re\r\n if re.match(\".*\\.cc3d$\", str(CompuCellSetup.simulationFileName)):\r\n\r\n print \"EXTRACTING restartEnabled\"\r\n\r\n import CC3DSimulationDataHandler\r\n\r\n cc3dSimulationDataHandler = CC3DSimulationDataHandler.CC3DSimulationDataHandler()\r\n cc3dSimulationDataHandler.readCC3DFileFormat(str(CompuCellSetup.simulationFileName))\r\n\r\n return cc3dSimulationDataHandler.cc3dSimulationData.restartEnabled()\r\n\r\n return False",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11r_domainid, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/state/dot11r_domainid (uint16)
|
def _set_dot11r_domainid(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="dot11r-domainid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11r_domainid must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="dot11r-domainid", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__dot11r_domainid = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r_domainid(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..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r_domainid must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"dot11r-domainid\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__dot11r_domainid = t\n if hasattr(self, '_set'):\n self._set()",
"def nfsv4_id_domain(self):\n return self._nfsv4_id_domain",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def setDomain(self, domain):\n self[Header.PARAM_DOMAIN] = domain",
"def _get_domain_for_node(self, node):\r\n domain = self.connection.lookupByUUIDString(node.uuid)\r\n return domain",
"def _insert_domain_id_if_needed(self, ref, driver, domain_id, conf):\n if not driver.is_domain_aware():\n if domain_id is None:\n domain_id = conf.default_domain_id\n ref['domain_id'] = domain_id",
"def _set_rbridge_id(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rbridge_id must be of a type compatible with uint32\"\"\",\n 'defined-type': \"uint32\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name=\"rbridge-id\", rest_name=\"rbridge-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-port-profile-ext', defining_module='brocade-port-profile-ext', yang_type='uint32', is_config=True)\"\"\",\n })\n\n self.__rbridge_id = t\n if hasattr(self, '_set'):\n self._set()",
"def punycode(domain: str):\n return domain.encode('idna').decode('ascii')",
"def _set_lsp_id(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 ),\n is_leaf=True,\n yang_name=\"lsp-id\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/network-instance\",\n defining_module=\"openconfig-network-instance\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"lsp_id must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"lsp-id\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/network-instance', defining_module='openconfig-network-instance', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__lsp_id = t\n if hasattr(self, \"_set\"):\n self._set()",
"def get_domain(entity_id):\n return entity_id.split('.')[0]",
"def convert_measurement_directory_n_el_16_r_split(\n lpath: str, s_dict_n_el_16: dict\n) -> None:\n for r_splits in get_radial_positions(lpath):\n convert_measurement_directory_n_el_16(\n lpath=lpath,\n s_dict_n_el_16=s_dict_n_el_16,\n r_split=r_splits,\n export_csv=True,\n )",
"def domain(self, domain):\n\t\tself.domain = domain",
"def is_valid_domain_id(id_str: str) -> bool:\n return re.match('([0-9][a-zA-Z0-9]{3})([a-zA-Z0-9])([0-9]{2})$', id_str)",
"def set_discrete_num(self, dn):\n self._dn = dn",
"def directoryservices_domainstatus(self, directoryservice_id, domainstatus_id, tenant_id=None, api_version=\"v2.0\"):\n\n if tenant_id is None and self._parent_class.tenant_id:\n # Pull tenant_id from parent namespace cache.\n tenant_id = self._parent_class.tenant_id\n elif not tenant_id:\n # No value for tenant_id.\n raise TypeError(\"tenant_id is required but not set or cached.\")\n cur_ctlr = self._parent_class.controller\n\n url = str(cur_ctlr) + \"/{}/api/tenants/{}/directoryservices/{}/domainstatus/{}\".format(api_version,\n tenant_id,\n directoryservice_id,\n domainstatus_id)\n\n api_logger.debug(\"URL = %s\", url)\n return self._parent_class.rest_call(url, \"get\")",
"def get_domain_section(self, domain):\n return 'domain/' + domain",
"def update_domain (self, domain, nffg):\n if domain in self.__tracked_domains:\n log.info(\"Update domain: %s in DoV...\" % domain)\n if self.status_updates:\n log.debug(\"Update status info for domain: %s in DoV...\" % domain)\n self.__dov.update_domain_status_in_dov(domain=domain, nffg=nffg)\n elif self.remerge_strategy:\n log.debug(\"Using REMERGE strategy for DoV update...\")\n self.__dov.remerge_domain_in_dov(domain=domain, nffg=nffg)\n else:\n log.debug(\"Using UPDATE strategy for DoV update...\")\n self.__dov.update_domain_in_dov(domain=domain, nffg=nffg)\n notify_remote_visualizer(data=self.__dov.get_resource_info(),\n unique_id=\"DOV\",\n params={\"event\": \"datastore\"})\n else:\n log.error(\n \"Detected domain: %s is not included in tracked domains: %s! Abort \"\n \"updating...\" % (domain, self.__tracked_domains))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for config, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/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_ssids_ssid_dot11r_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_access_points__access_points_access_point_ssids_ssid_dot11r_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def set_wlan_config(self, session_id, node_id, config):\n request = core_pb2.SetWlanConfigRequest(session_id=session_id, node_id=node_id, config=config)\n return self.stub.SetWlanConfig(request)",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_rstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_elements__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_queue_management_profiles_queue_management_profile_wred_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_elements__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_elements__qos_queue_management_profiles_queue_management_profile_red_uniform_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_interfaces__qos_buffer_allocation_profiles_buffer_allocation_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_interfaces__qos_buffer_allocation_profiles_buffer_allocation_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11r/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_ssids_ssid_dot11r_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_ssids_ssid_dot11r_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rstp_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_wred_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_dms, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/config/dot11v_dms (boolean)
|
def _set_dot11v_dms(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11v-dms", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_dms must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11v-dms", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dot11v_dms = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def set_dms(self, dms):\n return _radio_astro_swig.detect_sptr_set_dms(self, dms)",
"def set_dms(self, dms):\n return _radio_astro_swig.detect_set_dms(self, dms)",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def dvdz(self):\n\n if \"dvdz\" not in self.ds:\n var = xroms.dvdz(self.ds.v, self.grid, sboundary=\"extend\")\n self.ds[\"dvdz\"] = var\n return self.ds[\"dvdz\"]",
"def set_dlists(mlist, verbose):\n try:\n if mlist.dlists_enabled:\n pass\n except:\n if verbose:\n print 'setting %s.dlists_enabled = %d' % (mlist.internal_name(), DlistUtils.enabled(mlist))\n mlist.dlists_enabled = DlistUtils.enabled(mlist)",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def convert_dms_cm(dms_val):\n return 413836.537 * (1 / (dms_val ** 1.416))",
"def shared_data_volume_mount_options(sdv, sdvkey):\n # type: (dict, str) -> str\n try:\n if is_shared_data_volume_custom_linux_mount(sdv, sdvkey):\n mo = sdv[sdvkey]['fstab_entry']['fs_mntops']\n else:\n mo = sdv[sdvkey]['mount_options']\n except KeyError:\n mo = None\n return mo",
"def reset_dpms(self) -> None:\n power = xlib.ffi.new(\"unsigned short *\")\n state = xlib.ffi.new(\"unsigned char *\")\n if xlib.lib.DPMSInfo(self.dpy, power, state):\n if state[0]:\n xlib.lib.DPMSDisable(self.dpy)\n xlib.lib.DPMSEnable(self.dpy)",
"def di_dv(self, v: float) -> float:\n raise NotImplementedError",
"def vd2kmd(vp, vs, rho):\n lam = rho * (vp ** 2 - 4/3 * vs ** 2)\n mu = rho * vs ** 2\n rho = rho\n return lam, mu, rho",
"def set(self, v: 'vnl_vectorD') -> \"vnl_diag_matrixD &\":\n return _vnl_diag_matrixPython.vnl_diag_matrixD_set(self, v)",
"def show_dvm (self, dvm_name, force=0): \n debug (\"In MayaVi::show_dvm ()\")\n if not dvm_name:\n return\n if (self.cur_dvm_name != dvm_name) or (not self.cur_dvm_name) \\\n or force:\n if self.cur_dvm_name:\n old_dvm = self.data_viz_mgr[self.cur_dvm_name]\n old_dvm.close_gui ()\n self.cur_dvm_name = dvm_name\n dvm = self.data_viz_mgr[self.cur_dvm_name]\n self.gui.create_dvm_gui(dvm)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_bssidle, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/config/dot11v_bssidle (boolean)
|
def _set_dot11v_bssidle(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11v-bssidle", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_bssidle must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11v-bssidle", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=True)""",
})
self.__dot11v_bssidle = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def is_passive_standby_enabled():\n ui_config_value = UserConfigMgmt()[\"coc_v8_enabled\"]\n if platform == 'v6':\n # get the current user choice through the system property\n # deep standby mode is S5 power state mode, normal is S2\n SystemProperties = autoclass('android.os.SystemProperties')\n standby_mode_system_property = SystemProperties.get(\n 'persist.sys.power.offstate', 'S2')\n android_config_value = standby_mode_system_property == 'S5'\n if android_config_value != ui_config_value:\n # The value of the android property may have been updated by\n # the standby popup for example, in java side\n log.error(\"Bad passive standby conf: configstore value is %s \"\n \"whereas android value is %s\",\n ui_config_value, android_config_value)\n # TODO: update the value stored in configstore ?\n # let's take the value of the android property anyway\n return android_config_value\n else:\n return ui_config_value",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def is_inactive(self, switch, ms=None):\n if not self._initialised:\n raise AssertionError(CANNOT_READ_SWITCHES_EARLY_ERROR)\n if not ms:\n ms = 0.0\n\n if ms:\n return switch.state == 0 and ms <= switch.get_ms_since_last_change()\n\n return switch.state == 0",
"def deactivate(self):\n\n LinuxVolumeManager.has_lvm()\n LinuxVolumeManager.lvm('vgchange', '-an ', str(self.getAttribute(\"name\")))",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def is_idle(self):\n pass",
"def connection_is_idle(self):\n return self._idle_byte_intervals > 0",
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_lsp_is_active(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=\"lsp-is-active\", rest_name=\"lsp-is-active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"lsp_is_active must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"lsp-is-active\", rest_name=\"lsp-is-active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__lsp_is_active = t\n if hasattr(self, '_set'):\n self._set()",
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"def _set_active(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=\"active\", rest_name=\"active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Active information'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='empty', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"active must be of a type compatible with empty\"\"\",\n 'defined-type': \"empty\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"active\", rest_name=\"active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Active information'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='empty', is_config=True)\"\"\",\n })\n\n self.__active = t\n if hasattr(self, '_set'):\n self._set()",
"def set_active_ap_if(active=True):\n ap_if = network.WLAN(network.AP_IF)\n if ap_if.active() != active:\n ap_if.active(active)",
"def _get_bssids(self):\n return self.__bssids"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_bssidle_timeout, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/config/dot11v_bssidle_timeout (uint16)
|
def _set_dot11v_bssidle_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="dot11v-bssidle-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_bssidle_timeout must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="dot11v-bssidle-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=True)""",
})
self.__dot11v_bssidle_timeout = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"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 ),\n is_leaf=True,\n yang_name=\"timeout\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/system\",\n defining_module=\"openconfig-system\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"timeout must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(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._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__timeout = t\n if hasattr(self, \"_set\"):\n self._set()",
"def check_timeout(self):\n if self.hotsos_logout.instate(['selected']):\n while self.app.window_activate(window='Auto Logout'):\n self.app.type_info('enter')\n self.add_log('**Timeout Reset**')\n self.after(20000, self.check_timeout)",
"def vdi_timeout(self, value):\r\n\r\n request_json = {\r\n \"vDITimeOut\": value\r\n }\r\n\r\n self._set_instance_properties(\"_mssql_instance_prop\", request_json)",
"def so_timeout(self, so_timeout: ConfigNodePropertyInteger):\n\n self._so_timeout = so_timeout",
"def set_keepalive(sock: socket.socket, after_idle_sec: int = 1, interval_sec: int = 1, max_fails: int = 3) -> None:\n _system = platform.system().lower()\n if _system == \"linux\":\n sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, after_idle_sec)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPINTVL, interval_sec)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPCNT, max_fails)\n elif _system == \"darwin\":\n TCP_KEEPALIVE = 0x10\n sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)\n sock.setsockopt(socket.IPPROTO_TCP, TCP_KEEPALIVE, interval_sec)\n elif _system == \"windows\":\n sock.ioctl(socket.SIO_KEEPALIVE_VALS, (1, after_idle_sec * 1000, interval_sec * 1000))",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def get_end_device_alive_threshold(self, timeout=RESPONSE_DELAY):\n command.create_command(command.PROTOCOL_COMMAND_GET_END_DEVICE_ALIVE_THRESHOLD)\n command.send_command()\n delay_ms(timeout)\n raw = command.receive_command(COMMAND_SIZE_FOR_INT16)\n\n threshold = int.from_bytes(\n raw[PROTOCOL_HEADER_SIZE : COMMAND_SIZE_FOR_INT16 - 2], \"big\"\n )\n return threshold",
"def _set_blacklist_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"blacklist_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__blacklist_time = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_blacklist_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"blacklist_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__blacklist_time = t\n if hasattr(self, '_set'):\n self._set()",
"def avc_max_bit_rate_test(self, avc_max_bit_rate_test):\n\n self._avc_max_bit_rate_test = avc_max_bit_rate_test",
"def get_white_busy_timeout(self):\n return CoreAppXmlConfiguration.Instance.BusyTimeout",
"def keepalive_intvl(timeout: int, idle: int, cnt: int = 3) -> int:\n return max(1, int(float(timeout - idle) / cnt))",
"def setMsecValue(self, msec: 'unsigned long const') -> \"void\":\n return _coin.SbTime_setMsecValue(self, msec)",
"def monitor_timeout(self):\n delta = time.time() - self.login_time\n if delta > self.timeout:\n self.logout()\n self.lcd_timeout.display(int(round(self.timeout - delta, 0)))",
"def _set_connection_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"connection-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"connection-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__connection_time = t\n if hasattr(self, '_set'):\n self._set()",
"def set_white_busy_timeout(self, value):\n\n CoreAppXmlConfiguration.Instance.BusyTimeout = int(value)\n logger.info(\"White Busy Timeout set to\" + str(CoreAppXmlConfiguration.Instance.BusyTimeout))\n return CoreAppXmlConfiguration.Instance.BusyTimeout"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_dms, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/state/dot11v_dms (boolean)
|
def _set_dot11v_dms(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11v-dms", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_dms must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11v-dms", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dot11v_dms = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def set_dms(self, dms):\n return _radio_astro_swig.detect_sptr_set_dms(self, dms)",
"def set_dms(self, dms):\n return _radio_astro_swig.detect_set_dms(self, dms)",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def dvdz(self):\n\n if \"dvdz\" not in self.ds:\n var = xroms.dvdz(self.ds.v, self.grid, sboundary=\"extend\")\n self.ds[\"dvdz\"] = var\n return self.ds[\"dvdz\"]",
"def set_dlists(mlist, verbose):\n try:\n if mlist.dlists_enabled:\n pass\n except:\n if verbose:\n print 'setting %s.dlists_enabled = %d' % (mlist.internal_name(), DlistUtils.enabled(mlist))\n mlist.dlists_enabled = DlistUtils.enabled(mlist)",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def reset_dpms(self) -> None:\n power = xlib.ffi.new(\"unsigned short *\")\n state = xlib.ffi.new(\"unsigned char *\")\n if xlib.lib.DPMSInfo(self.dpy, power, state):\n if state[0]:\n xlib.lib.DPMSDisable(self.dpy)\n xlib.lib.DPMSEnable(self.dpy)",
"def vd2kmd(vp, vs, rho):\n lam = rho * (vp ** 2 - 4/3 * vs ** 2)\n mu = rho * vs ** 2\n rho = rho\n return lam, mu, rho",
"def show_dvm (self, dvm_name, force=0): \n debug (\"In MayaVi::show_dvm ()\")\n if not dvm_name:\n return\n if (self.cur_dvm_name != dvm_name) or (not self.cur_dvm_name) \\\n or force:\n if self.cur_dvm_name:\n old_dvm = self.data_viz_mgr[self.cur_dvm_name]\n old_dvm.close_gui ()\n self.cur_dvm_name = dvm_name\n dvm = self.data_viz_mgr[self.cur_dvm_name]\n self.gui.create_dvm_gui(dvm)",
"def di_dv(self, v: float) -> float:\n raise NotImplementedError",
"def convert_dms_cm(dms_val):\n return 413836.537 * (1 / (dms_val ** 1.416))",
"def set(self, v: 'vnl_vectorD') -> \"vnl_diag_matrixD &\":\n return _vnl_diag_matrixPython.vnl_diag_matrixD_set(self, v)",
"def test_drmsd_permutation():\n a = np.asarray([[0, 0, 0],\n [0, 1, 0],\n [0, 0, 2],\n [0, 0, 0]])\n b = np.asarray([[0, 0, 2],\n [0, 1, 0],\n [0, 0, 0],\n [0, 0, 0]])\n a = torch.tensor(a, dtype=torch.float)\n b = torch.tensor(b, dtype=torch.float)\n assert drmsd(a, b) != 0\n assert drmsd(a, b, truncate_dist_matrix=False) != 0"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_bssidle, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/state/dot11v_bssidle (boolean)
|
def _set_dot11v_bssidle(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11v-bssidle", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_bssidle must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11v-bssidle", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dot11v_bssidle = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_qbss_load(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=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"qbss_load must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"qbss-load\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__qbss_load = t\n if hasattr(self, '_set'):\n self._set()",
"def is_inactive(self, switch, ms=None):\n if not self._initialised:\n raise AssertionError(CANNOT_READ_SWITCHES_EARLY_ERROR)\n if not ms:\n ms = 0.0\n\n if ms:\n return switch.state == 0 and ms <= switch.get_ms_since_last_change()\n\n return switch.state == 0",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_station_isolation(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=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"station_isolation must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"station-isolation\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__station_isolation = t\n if hasattr(self, '_set'):\n self._set()",
"def is_passive_standby_enabled():\n ui_config_value = UserConfigMgmt()[\"coc_v8_enabled\"]\n if platform == 'v6':\n # get the current user choice through the system property\n # deep standby mode is S5 power state mode, normal is S2\n SystemProperties = autoclass('android.os.SystemProperties')\n standby_mode_system_property = SystemProperties.get(\n 'persist.sys.power.offstate', 'S2')\n android_config_value = standby_mode_system_property == 'S5'\n if android_config_value != ui_config_value:\n # The value of the android property may have been updated by\n # the standby popup for example, in java side\n log.error(\"Bad passive standby conf: configstore value is %s \"\n \"whereas android value is %s\",\n ui_config_value, android_config_value)\n # TODO: update the value stored in configstore ?\n # let's take the value of the android property anyway\n return android_config_value\n else:\n return ui_config_value",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def deactivate(self):\n\n LinuxVolumeManager.has_lvm()\n LinuxVolumeManager.lvm('vgchange', '-an ', str(self.getAttribute(\"name\")))",
"def is_idle(self):\n pass",
"def wifi_hidden(self, state: object = None):\n if state is None:\n self._logger.info(\"Retrieving WiFi hidden SSID status...\")\n return \"on\" if int(self._device_info().get(\"hideSSID\")) == 1 else \"off\"\n if (isinstance(state, str) and state.lower() == 'off') or not state:\n return self._wifi_hidden_off()\n self._wifi_hidden_on()",
"def connection_is_idle(self):\n return self._idle_byte_intervals > 0",
"def _set_lsp_is_active(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=\"lsp-is-active\", rest_name=\"lsp-is-active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"lsp_is_active must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"lsp-is-active\", rest_name=\"lsp-is-active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__lsp_is_active = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def off():\n resp = _send('SetBinaryState', {'BinaryState': (0, 'Boolean')})\n tagValue = conn.extractSingleTag(resp, 'BinaryState')\n return True if tagValue in ['0', 'Error'] else False",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_active(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=\"active\", rest_name=\"active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Active information'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='empty', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"active must be of a type compatible with empty\"\"\",\n 'defined-type': \"empty\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"active\", rest_name=\"active\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Active information'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='empty', is_config=True)\"\"\",\n })\n\n self.__active = t\n if hasattr(self, '_set'):\n self._set()",
"def set_as_inactive(self):\n with transaction.atomic():\n self.is_member = False\n self.is_secretary = False\n self.is_treasurer = False\n self.is_president = False\n self.is_inactive = True"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_bssidle_timeout, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/state/dot11v_bssidle_timeout (uint16)
|
def _set_dot11v_bssidle_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="dot11v-bssidle-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_bssidle_timeout must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="dot11v-bssidle-timeout", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__dot11v_bssidle_timeout = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_gtk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"gtk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"gtk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__gtk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"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 ),\n is_leaf=True,\n yang_name=\"timeout\",\n parent=self,\n path_helper=self._path_helper,\n extmethods=self._extmethods,\n register_paths=True,\n namespace=\"http://openconfig.net/yang/system\",\n defining_module=\"openconfig-system\",\n yang_type=\"uint16\",\n is_config=False,\n )\n except (TypeError, ValueError):\n raise ValueError(\n {\n \"error-string\": \"\"\"timeout must be of a type compatible with uint16\"\"\",\n \"defined-type\": \"uint16\",\n \"generated-type\": \"\"\"YANGDynClass(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._extmethods, register_paths=True, namespace='http://openconfig.net/yang/system', defining_module='openconfig-system', yang_type='uint16', is_config=False)\"\"\",\n }\n )\n\n self.__timeout = t\n if hasattr(self, \"_set\"):\n self._set()",
"def check_timeout(self):\n if self.hotsos_logout.instate(['selected']):\n while self.app.window_activate(window='Auto Logout'):\n self.app.type_info('enter')\n self.add_log('**Timeout Reset**')\n self.after(20000, self.check_timeout)",
"def vdi_timeout(self, value):\r\n\r\n request_json = {\r\n \"vDITimeOut\": value\r\n }\r\n\r\n self._set_instance_properties(\"_mssql_instance_prop\", request_json)",
"def so_timeout(self, so_timeout: ConfigNodePropertyInteger):\n\n self._so_timeout = so_timeout",
"def set_keepalive(sock: socket.socket, after_idle_sec: int = 1, interval_sec: int = 1, max_fails: int = 3) -> None:\n _system = platform.system().lower()\n if _system == \"linux\":\n sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPIDLE, after_idle_sec)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPINTVL, interval_sec)\n sock.setsockopt(socket.SOL_TCP, socket.TCP_KEEPCNT, max_fails)\n elif _system == \"darwin\":\n TCP_KEEPALIVE = 0x10\n sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)\n sock.setsockopt(socket.IPPROTO_TCP, TCP_KEEPALIVE, interval_sec)\n elif _system == \"windows\":\n sock.ioctl(socket.SIO_KEEPALIVE_VALS, (1, after_idle_sec * 1000, interval_sec * 1000))",
"def get_end_device_alive_threshold(self, timeout=RESPONSE_DELAY):\n command.create_command(command.PROTOCOL_COMMAND_GET_END_DEVICE_ALIVE_THRESHOLD)\n command.send_command()\n delay_ms(timeout)\n raw = command.receive_command(COMMAND_SIZE_FOR_INT16)\n\n threshold = int.from_bytes(\n raw[PROTOCOL_HEADER_SIZE : COMMAND_SIZE_FOR_INT16 - 2], \"big\"\n )\n return threshold",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_ptk_timeout(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..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ptk_timeout must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"ptk-timeout\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__ptk_timeout = t\n if hasattr(self, '_set'):\n self._set()",
"def keepalive_intvl(timeout: int, idle: int, cnt: int = 3) -> int:\n return max(1, int(float(timeout - idle) / cnt))",
"def _set_blacklist_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"blacklist_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__blacklist_time = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_blacklist_time(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..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"blacklist_time must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"blacklist-time\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=True)\"\"\",\n })\n\n self.__blacklist_time = t\n if hasattr(self, '_set'):\n self._set()",
"def avc_max_bit_rate_test(self, avc_max_bit_rate_test):\n\n self._avc_max_bit_rate_test = avc_max_bit_rate_test",
"def get_white_busy_timeout(self):\n return CoreAppXmlConfiguration.Instance.BusyTimeout",
"def setMsecValue(self, msec: 'unsigned long const') -> \"void\":\n return _coin.SbTime_setMsecValue(self, msec)",
"def monitor_timeout(self):\n delta = time.time() - self.login_time\n if delta > self.timeout:\n self.logout()\n self.lcd_timeout.display(int(round(self.timeout - delta, 0)))",
"def set_end_device_alive_threshold(self, threshold, timeout=RESPONSE_DELAY):\n\n command.create_set_command(\n command.PROTOCOL_COMMAND_SET_END_DEVICE_ALIVE_THRESHOLD, threshold, 2\n )\n command.send_command()\n delay_ms(timeout)\n raw = command.receive_command(COMMAND_SIZE_FOR_UINT8)\n\n status = raw[PROTOCOL_HEADER_SIZE]\n return status",
"def test_get_standby_timeout(query_output):\n mock = MagicMock()\n mock.side_effect = [\n \"Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)\",\n query_output,\n ]\n\n with patch.dict(powercfg.__salt__, {\"cmd.run\": mock}):\n ret = powercfg.get_standby_timeout()\n calls = [\n call(\"powercfg /getactivescheme\", python_shell=False),\n call(\n \"powercfg /q 381b4222-f694-41f0-9685-ff5bb260df2e SUB_SLEEP\"\n \" STANDBYIDLE\",\n python_shell=False,\n ),\n ]\n mock.assert_has_calls(calls)\n\n assert {\"ac\": 30, \"dc\": 15} == ret"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for dot11v_bsstransition, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/state/dot11v_bsstransition (boolean)
|
def _set_dot11v_bsstransition(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=YANGBool, is_leaf=True, yang_name="dot11v-bsstransition", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """dot11v_bsstransition must be of a type compatible with boolean""",
'defined-type': "boolean",
'generated-type': """YANGDynClass(base=YANGBool, is_leaf=True, yang_name="dot11v-bsstransition", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='boolean', is_config=False)""",
})
self.__dot11v_bsstransition = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v_bsstransition(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=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bsstransition must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bsstransition\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11v_bsstransition = t\n if hasattr(self, '_set'):\n self._set()",
"def IsVBatEnabled(self):\n\t\ttemp = self.readRegister(DAY)\t\t#The 3rd bit of the RTCC_RTCC day register controls VBATEN \t\n\t\tif((temp & VBATEN) == VBATEN):\n\t\t\treturn True;\n\t\telse:\n\t\t\treturn False;",
"def _set_dot11v_dms(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=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_dms must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-dms\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_dms = t\n if hasattr(self, '_set'):\n self._set()",
"def bms_state(self, vebus):\n\t\t# Will return None if no vebus BMS\n\t\tmay_discharge = self._dbusmonitor.get_value(vebus,\n\t\t\t'/Bms/AllowToDischarge')\n\t\tmay_charge = self._dbusmonitor.get_value(vebus,\n\t\t\t'/Bms/AllowToCharge')\n\n\t\tif may_discharge is None or may_charge is None:\n\t\t\t# There is no vebus BMS in the system. Check if there\n\t\t\t# are operational limits set by another BMS. If these values\n\t\t\t# don't exist we will get None, which we interpret as\n\t\t\t# a signal that discharge is allowed. This is handled adequately\n\t\t\t# because None != 0.\n\t\t\tmay_discharge = self._dbusmonitor.get_value(vebus,\n\t\t\t\t'/BatteryOperationalLimits/MaxDischargeCurrent') != 0\n\t\t\tmay_charge = self._dbusmonitor.get_value(vebus,\n\t\t\t\t'/BatteryOperationalLimits/MaxChargeCurrent') != 0\n\t\treturn (bool(may_charge), bool(may_discharge))",
"def BSConfig(self, state):\n if self.verbose:\n print(self.name, \"Changing the state of the BS buttons to\", state)\n if self.log is not None:\n self.log.write(self.name + ' Changing the state of the BS buttons to ' + str(state) + '\\n')\n self.bsbutton.config(state=state)\n self.notbsbutton.config(state=state)\n if state == NORMAL: # if the player's Bs buttons and not bs buttons are enabled\n for player in self.world.getPlayerList():\n if player is not self:\n player.bsbutton.config(state=DISABLED) # disable all the other players' bs and not bs buttons",
"def _set_dot11v_bssidle(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=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v_bssidle must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11v-bssidle\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11v_bssidle = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11k(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=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11k must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11k\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11k = t\n if hasattr(self, '_set'):\n self._set()",
"def mpeg_constant_bpic_flag_test(self, mpeg_constant_bpic_flag_test):\n\n self._mpeg_constant_bpic_flag_test = mpeg_constant_bpic_flag_test",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"def EnableVbat(self):\n\t\ttemp = self.readRegister(DAY)\t\t#The 3rd bit of the RTCC_RTCC day register controls VBATEN \n\t\ttemp = (temp | VBATEN)\t\t\t\t#Set 3rd bit to enable backup battery mode\n\t\tself.writeRegister(DAY,temp)\t\t#Enable backup battery mode",
"def _set_bpdu_guard(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=\"bpdu-guard\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"bpdu_guard must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"bpdu-guard\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__bpdu_guard = t\n if hasattr(self, '_set'):\n self._set()",
"def binary_state(value):\n if value == \"on\":\n return True\n elif value == \"off\":\n return False\n else:\n return float(\"nan\")",
"def cast_boolean_voting_ballot(position):\n election_position = models.BooleanVotingPosition.get(position['id'])\n ballot = models.BooleanVotingBallot(position=election_position)\n ballot.put()\n for cp in position['candidate_points']:\n if cp['points'] > 0:\n # Check for a write-in\n if cp['id'].startswith('write-in'):\n epc = models.ElectionPositionCandidate.gql('WHERE election_position=:1 AND name=:2',\n election_position,\n cp['name']).get()\n if not epc:\n epc = models.ElectionPositionCandidate(election_position=election_position,\n net_id=None,\n name=cp['name'],\n written_in=True)\n epc.put()\n cp['id'] = str(epc.key())\n epc = models.ElectionPositionCandidate.get(cp['id'])\n choice = models.BooleanVotingChoice(ballot=ballot,\n candidate=epc,\n points=cp['points'])\n choice.put()\n logging.info('Stored boolean choice ballot in models.')",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(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=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with boolean\"\"\",\n 'defined-type': \"boolean\",\n 'generated-type': \"\"\"YANGDynClass(base=YANGBool, is_leaf=True, yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='boolean', is_config=False)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"def solveBVP_scipy(self, root_method='hybr'):\n\n # Make sure inputs are the correct format\n paramset = list(self.paramset)\n\n \n # Here we create and initialize the integrator SXFunction\n self.bvpint = cs.CVodesIntegrator(self.modlT)\n self.bvpint.setOption('abstol',self.intoptions['bvp_abstol'])\n self.bvpint.setOption('reltol',self.intoptions['bvp_reltol'])\n self.bvpint.setOption('tf',1)\n self.bvpint.setOption('disable_internal_warnings', True)\n self.bvpint.setOption('fsens_err_con', True)\n self.bvpint.init()\n\n def bvp_minimize_function(x):\n \"\"\" Minimization objective \"\"\"\n # perhaps penalize in try/catch?\n if np.any(x < 0): return np.ones(3)\n self.bvpint.setInput(x[:-1], cs.INTEGRATOR_X0)\n self.bvpint.setInput(paramset + [x[-1]], cs.INTEGRATOR_P)\n self.bvpint.evaluate()\n out = x[:-1] - self.bvpint.output().toArray().flatten()\n out = out.tolist()\n\n self.modlT.setInput(x[:-1], cs.DAE_X)\n self.modlT.setInput(paramset + [x[-1]], 2)\n self.modlT.evaluate()\n out += self.modlT.output()[0].toArray()[0].tolist()\n return np.array(out)\n \n from scipy.optimize import root\n\n options = {}\n\n root_out = root(bvp_minimize_function, self.y0,\n tol=self.intoptions['bvp_ftol'],\n method=root_method, options=options)\n\n # Check solve success\n if not root_out.status:\n raise RuntimeError(\"bvpsolve: \" + root_out.message)\n\n # Check output convergence\n if np.linalg.norm(root_out.qtf) > self.intoptions['bvp_ftol']*1E4:\n raise RuntimeError(\"bvpsolve: nonconvergent\")\n\n # save output to self.y0\n self.y0 = root_out.x",
"def vss_option(self, value):\r\n\r\n request_json = {\r\n \"useVss\": value\r\n }\r\n\r\n self._set_instance_properties(\"_mssql_instance_prop\", request_json)",
"def affectsState(self) -> \"SbBool\":\n return _coin.SoVRMLSwitch_affectsState(self)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for config, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/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_ssids_ssid_dot11v_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """config must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_config_openconfig_access_points__access_points_access_point_ssids_ssid_dot11v_config, is_container='container', yang_name="config", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__config = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11v_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot11r_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_wmm_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_band_steering_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_wifi_mac__ssids_ssid_dot1x_timers_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11v(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11v must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11v_openconfig_wifi_mac__ssids_ssid_dot11v, is_container='container', yang_name=\"dot11v\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11v = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def set_wlan_config(self, session_id, node_id, config):\n request = core_pb2.SetWlanConfigRequest(session_id=session_id, node_id=node_id, config=config)\n return self.stub.SetWlanConfig(request)",
"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_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_vlan__vlans_vlan_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_vlan__vlans_vlan_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos_interfaces__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"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_qos__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_qos__qos_interfaces_interface_input_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_dot11r(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"dot11r must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_dot11r_openconfig_wifi_mac__ssids_ssid_dot11r, is_container='container', yang_name=\"dot11r\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__dot11r = t\n if hasattr(self, '_set'):\n self._set()",
"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_platform__components_component_port_breakout_mode_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"config must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_config_openconfig_platform__components_component_port_breakout_mode_config, is_container='container', yang_name=\"config\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/platform/port', defining_module='openconfig-platform-port', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__config = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/ssids/ssid/dot11v/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_ssids_ssid_dot11v_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_ssids_ssid_dot11v_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot1x_timers_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_rapid_pvst_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_vlan__vlans_vlan_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/vlan', defining_module='openconfig-vlan', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_telemetry__telemetry_system_subscriptions_persistent_subscriptions_persistent_subscription_sensor_profiles_sensor_profile_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for counters, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/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_ssids_ssid_clients_client_state_counters, is_container='container', yang_name="counters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """counters must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_counters_openconfig_access_points__access_points_access_point_ssids_ssid_clients_client_state_counters, is_container='container', yang_name="counters", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__counters = t
if hasattr(self, '_set'):
self._set()
|
[
"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_clients_client_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_wifi_mac__ssids_ssid_clients_client_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_spanning_tree__stp_mstp_mst_instances_mst_instance_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"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_spanning_tree__stp_rstp_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"counters must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_counters_openconfig_spanning_tree__stp_rstp_interfaces_interface_state_counters, is_container='container', yang_name=\"counters\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/spanning-tree', defining_module='openconfig-spanning-tree', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__counters = t\n if hasattr(self, '_set'):\n self._set()",
"def counters ( self ) :\n return self._counters",
"def retrieve_interfaces_interface_state_counters_counters_by_id(name): # noqa: E501\n return 'do some magic!'",
"def counters(cli_opts, json): # noqa: B902\n\n return_code = fib.FibCountersCmd(cli_opts).run(json)\n sys.exit(return_code)",
"def _build_counters(counters):\n return [\n {'name': name, 'delta': value}\n for name, value in counters.items()\n ]",
"def _set_counter(self, value):\n self._counterVar = value",
"def retrieve_interfaces_interface_subinterfaces_subinterface_state_counters_counters_by_id(name, index): # noqa: E501\n return 'do some magic!'",
"def _cx_counters_psutil(self):\n for iface, counters in psutil.net_io_counters(pernic=True).iteritems():\n metrics = {\n 'bytes_rcvd': counters.bytes_recv,\n 'bytes_sent': counters.bytes_sent,\n 'packets_in.count': counters.packets_recv,\n 'packets_in.error': counters.errin,\n 'packets_out.count': counters.packets_sent,\n 'packets_out.error': counters.errout,\n }\n self._submit_devicemetrics(iface, metrics)",
"def cuid_counter():\n return cuid.counter",
"async def counter_list(self, ctx):\n server_id = ctx.guild.id\n\n async def on_200(r):\n data = await r.json()\n rows = [f\"{x['name']}->{x['count']}\" for x in data]\n p = Pages(ctx, entries=rows, per_page=10)\n await p.paginate()\n\n await self.bot.request_helper(\n \"get\",\n f\"/counter/discord/{server_id}\",\n ctx,\n error_prefix=\"Error getting counters\",\n success_function=on_200,\n )",
"def list_counters():\n print(\"\\n\".join(query_column(\"SELECT counter FROM counters\")))",
"def getIbvCountersWrapper(args):\n return getIbvCounters(*args)",
"async def customcounter_summary(self, ctx):\n character: Character = await Character.from_ctx(ctx)\n embed = EmbedWithCharacter(character)\n for counter in character.consumables:\n embed.add_field(name=counter.name, value=counter.full_str())\n await ctx.send(embed=embed)",
"def changeCounter(counterList):\n # counter = counterList[index].makeCopy()\n # print('Choose a new value for the count.\\n')\n # count = getPosInt('The count', 10**COUNT_LEN - 1)\n # counter.setCount(count)\n # return (counter, index)",
"def reset_counters(self) -> dict[str, float]:\n res = self.get_stats()\n self._start_time = time.time()\n self._count = 0\n return res",
"def get_network_counters(args={}):\n res = {}\n\n if args.get('net_io_counters', False):\n res['net_io_counters'] = to_dict(psutil.net_io_counters(pernic=pernic))\n\n return res",
"def update_set_adcount(self, c):\n _ldns.ldns_update_set_adcount(self, c)\n #parameters: ldns_pkt *,uint16_t,\n #retvals: "
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for rssi, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/rssi (int8)
|
def _set_rssi(self, v, load=False):
if hasattr(v, "_utype"):
v = v._utype(v)
try:
t = YANGDynClass(v,base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name="rssi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='int8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """rssi must be of a type compatible with int8""",
'defined-type': "int8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name="rssi", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='int8', is_config=False)""",
})
self.__rssi = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_neighbor_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"neighbor_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"neighbor-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__neighbor_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_steering_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"steering_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=False)\"\"\",\n })\n\n self.__steering_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_steering_rssi(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': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"steering_rssi must be of a type compatible with int8\"\"\",\n 'defined-type': \"int8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['-128..127']}, int_size=8), is_leaf=True, yang_name=\"steering-rssi\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='int8', is_config=True)\"\"\",\n })\n\n self.__steering_rssi = t\n if hasattr(self, '_set'):\n self._set()",
"def set_rssi(self, rssi_list):\n return _raw_util.raw_message_set_rssi(self, rssi_list)",
"def set_rssi(self, rssi_list):\n return _raw_util.raw_message_sptr_set_rssi(self, rssi_list)",
"def distance_in_rssi(rssi):\r\n d_rssi = float(sigmoid(rssi / 10.0 + 5))\r\n return d_rssi",
"def get_clientrssi():\n input = os.popen(\n '/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I')\n return int(''.join([x.split()[1] for x in input if 'agrCtlRSSI' in x]))",
"def signal_rssi(self):\n return max(min(self.signal_quality / 2 - 100, -50), -100)",
"def rssi_values(self):\n return _raw_util.raw_message_sptr_rssi_values(self)",
"def rssi_valid(self):\n return _raw_util.raw_message_sptr_rssi_valid(self)",
"def avg_rssi(self, avg_rssi):\n\n self._avg_rssi = avg_rssi",
"def rssi_valid(self):\n return _raw_util.raw_message_rssi_valid(self)",
"def check_radwin_rssi(item, params, info):\n warn, crit = params\n state = 3\n infotext = \"unknown output\"\n rssi = None\n\n try:\n logging.debug(\"radwin_rssi SNMP Output %s\", info)\n if not len(info):\n raise ValueError\n rssi = int(info[0][0])\n if rssi < crit:\n state = 2\n elif rssi > crit and rssi < warn:\n state = 1\n else:\n state = 0\n infotext = \"Device received signal strength indication is %s \" % rssi\n except ValueError:\n infotext = \"type mismatch value\"\n logging.critical(\"radwin_rssi %s\", infotext, exc_info=True)\n except:\n infotext = \"unknown value\"\n logging.critical(\"radwin_rssi %s\", infotext, exc_info=True)\n return (state, infotext, [(\"rssi\", rssi, warn, crit)])",
"def get_devices_from_inquiry_with_rssi(self):\n # save current filter\n old_filter = self._sock.getsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, 14)\n\n # perform a device inquiry on bluetooth device #0\n # The inquiry should last 8 * 1.28 = 10.24 seconds\n # before the inquiry is performed, bluez should flush its cache of\n # previously discovered devices\n flt = bluez.hci_filter_new()\n bluez.hci_filter_all_events(flt)\n bluez.hci_filter_set_ptype(flt, bluez.HCI_EVENT_PKT)\n self._sock.setsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, flt)\n\n duration = 4\n max_responses = 255\n cmd_pkt = struct.pack(\"BBBBB\", 0x33, 0x8b, 0x9e, duration, max_responses)\n bluez.hci_send_cmd(self._sock, bluez.OGF_LINK_CTL, bluez.OCF_INQUIRY, cmd_pkt)\n\n results = []\n\n done = False\n while not done:\n pkt = self.sock.recv(255)\n ptype, event, plen = struct.unpack(\"BBB\", pkt[:3])\n if event == bluez.EVT_INQUIRY_RESULT_WITH_RSSI:\n pkt = pkt[3:]\n nrsp = bluetooth.get_byte(pkt[0])\n for i in range(nrsp):\n addr = bluez.ba2str(pkt[1 + 6 * i:1 + 6 * i + 6])\n rssi = bluetooth.byte_to_signed_int(\n bluetooth.get_byte(pkt[1 + 13 * nrsp + i]))\n results.append((addr, rssi))\n print(\"[%s] RSSI: [%d]\" % (addr, rssi))\n elif event == bluez.EVT_INQUIRY_COMPLETE:\n done = True\n elif event == bluez.EVT_CMD_STATUS:\n status, ncmd, opcode = struct.unpack(\"BBH\", pkt[3:7])\n if status != 0:\n print(\"uh oh...\")\n self.printpacket(pkt[3:7])\n done = True\n elif event == bluez.EVT_INQUIRY_RESULT:\n pkt = pkt[3:]\n nrsp = bluetooth.get_byte(pkt[0])\n for i in range(nrsp):\n addr = bluez.ba2str(pkt[1 + 6 * i:1 + 6 * i + 6])\n results.append((addr, -1))\n print(\"[%s] (no RRSI)\" % addr)\n else:\n print(\"unrecognized packet type 0x%02x\" % ptype)\n print(\"event \", event)\n\n # restore old filter\n self._sock.setsockopt(bluez.SOL_HCI, bluez.HCI_FILTER, old_filter)\n\n return results",
"def _set_snr(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=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"snr must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__snr = t\n if hasattr(self, '_set'):\n self._set()",
"def get_scan_rssi(dut, tracked_bssids, num_measurements=1):\n scan_rssi = collections.OrderedDict()\n for bssid in tracked_bssids:\n scan_rssi[bssid] = empty_rssi_result()\n for idx in range(num_measurements):\n scan_output = dut.adb.shell(SCAN)\n time.sleep(MED_SLEEP)\n scan_output = dut.adb.shell(SCAN_RESULTS)\n for bssid in tracked_bssids:\n bssid_result = re.search(bssid + '.*',\n scan_output,\n flags=re.IGNORECASE)\n if bssid_result:\n bssid_result = bssid_result.group(0).split('\\t')\n scan_rssi[bssid]['data'].append(int(bssid_result[2]))\n else:\n scan_rssi[bssid]['data'].append(RSSI_ERROR_VAL)\n # Compute mean RSSIs. Only average valid readings.\n # Output RSSI_ERROR_VAL if no readings found.\n for key, val in scan_rssi.items():\n filtered_rssi_values = [x for x in val['data'] if not math.isnan(x)]\n if filtered_rssi_values:\n scan_rssi[key]['mean'] = statistics.mean(filtered_rssi_values)\n if len(filtered_rssi_values) > 1:\n scan_rssi[key]['stdev'] = statistics.stdev(\n filtered_rssi_values)\n else:\n scan_rssi[key]['stdev'] = 0\n else:\n scan_rssi[key]['mean'] = RSSI_ERROR_VAL\n scan_rssi[key]['stdev'] = RSSI_ERROR_VAL\n return scan_rssi",
"async def test_rssi_sensor(hass: HomeAssistant) -> None:\n\n config_entry = MockConfigEntry(\n domain=lifx.DOMAIN,\n title=DEFAULT_ENTRY_TITLE,\n data={CONF_HOST: IP_ADDRESS},\n unique_id=SERIAL,\n )\n config_entry.add_to_hass(hass)\n bulb = _mocked_bulb()\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await async_setup_component(hass, lifx.DOMAIN, {lifx.DOMAIN: {}})\n await hass.async_block_till_done()\n\n entity_id = \"sensor.my_bulb_rssi\"\n entity_registry = er.async_get(hass)\n\n entry = entity_registry.entities.get(entity_id)\n assert entry\n assert entry.disabled\n assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION\n\n # Test enabling entity\n updated_entry = entity_registry.async_update_entity(\n entry.entity_id, **{\"disabled_by\": None}\n )\n\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await hass.config_entries.async_reload(config_entry.entry_id)\n await hass.async_block_till_done()\n\n assert updated_entry != entry\n assert updated_entry.disabled is False\n assert updated_entry.unit_of_measurement == SIGNAL_STRENGTH_DECIBELS_MILLIWATT\n\n async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=120))\n await hass.async_block_till_done()\n\n rssi = hass.states.get(entity_id)\n assert (\n rssi.attributes[ATTR_UNIT_OF_MEASUREMENT] == SIGNAL_STRENGTH_DECIBELS_MILLIWATT\n )\n assert rssi.attributes[ATTR_DEVICE_CLASS] == SensorDeviceClass.SIGNAL_STRENGTH\n assert rssi.attributes[\"state_class\"] == SensorStateClass.MEASUREMENT",
"def get_atten_for_target_rssi(target_rssi, attenuators, dut, ping_server):\n logging.info('Searching attenuation for RSSI = {}dB'.format(target_rssi))\n # Set attenuator to 0 dB\n for atten in attenuators:\n atten.set_atten(0, strict=False)\n # Start ping traffic\n dut_ip = dut.droid.connectivityGetIPv4Addresses('wlan0')[0]\n # Measure starting RSSI\n ping_future = get_ping_stats_nb(src_device=ping_server,\n dest_address=dut_ip,\n ping_duration=1.5,\n ping_interval=0.02,\n ping_size=64)\n current_rssi = get_connected_rssi(dut,\n num_measurements=4,\n polling_frequency=0.25,\n first_measurement_delay=0.5,\n disconnect_warning=1,\n ignore_samples=1)\n current_rssi = current_rssi['signal_poll_rssi']['mean']\n ping_future.result()\n target_atten = 0\n logging.debug(\"RSSI @ {0:.2f}dB attenuation = {1:.2f}\".format(\n target_atten, current_rssi))\n within_range = 0\n for idx in range(20):\n atten_delta = max(min(current_rssi - target_rssi, 20), -20)\n target_atten = int((target_atten + atten_delta) * 4) / 4\n if target_atten < 0:\n return 0\n if target_atten > attenuators[0].get_max_atten():\n return attenuators[0].get_max_atten()\n for atten in attenuators:\n atten.set_atten(target_atten, strict=False)\n ping_future = get_ping_stats_nb(src_device=ping_server,\n dest_address=dut_ip,\n ping_duration=1.5,\n ping_interval=0.02,\n ping_size=64)\n current_rssi = get_connected_rssi(dut,\n num_measurements=4,\n polling_frequency=0.25,\n first_measurement_delay=0.5,\n disconnect_warning=1,\n ignore_samples=1)\n current_rssi = current_rssi['signal_poll_rssi']['mean']\n ping_future.result()\n logging.info(\"RSSI @ {0:.2f}dB attenuation = {1:.2f}\".format(\n target_atten, current_rssi))\n if abs(current_rssi - target_rssi) < 1:\n if within_range:\n logging.info(\n 'Reached RSSI: {0:.2f}. Target RSSI: {1:.2f}.'\n 'Attenuation: {2:.2f}, Iterations = {3:.2f}'.format(\n current_rssi, target_rssi, target_atten, idx))\n return target_atten\n else:\n within_range = True\n else:\n within_range = False\n return target_atten",
"async def test_rssi_sensor_old_firmware(hass: HomeAssistant) -> None:\n\n config_entry = MockConfigEntry(\n domain=lifx.DOMAIN,\n title=DEFAULT_ENTRY_TITLE,\n data={CONF_HOST: IP_ADDRESS},\n unique_id=SERIAL,\n )\n config_entry.add_to_hass(hass)\n bulb = _mocked_bulb_old_firmware()\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await async_setup_component(hass, lifx.DOMAIN, {lifx.DOMAIN: {}})\n await hass.async_block_till_done()\n\n entity_id = \"sensor.my_bulb_rssi\"\n entity_registry = er.async_get(hass)\n\n entry = entity_registry.entities.get(entity_id)\n assert entry\n assert entry.disabled\n assert entry.disabled_by is er.RegistryEntryDisabler.INTEGRATION\n\n # Test enabling entity\n updated_entry = entity_registry.async_update_entity(\n entry.entity_id, **{\"disabled_by\": None}\n )\n\n with _patch_discovery(device=bulb), _patch_config_flow_try_connect(\n device=bulb\n ), _patch_device(device=bulb):\n await hass.config_entries.async_reload(config_entry.entry_id)\n await hass.async_block_till_done()\n\n assert updated_entry != entry\n assert updated_entry.disabled is False\n assert updated_entry.unit_of_measurement == SIGNAL_STRENGTH_DECIBELS\n\n async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=120))\n await hass.async_block_till_done()\n\n rssi = hass.states.get(entity_id)\n assert rssi.attributes[ATTR_UNIT_OF_MEASUREMENT] == SIGNAL_STRENGTH_DECIBELS\n assert rssi.attributes[ATTR_DEVICE_CLASS] == SensorDeviceClass.SIGNAL_STRENGTH\n assert rssi.attributes[\"state_class\"] == SensorStateClass.MEASUREMENT"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for snr, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/snr (uint8)
|
def _set_snr(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="snr", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """snr must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="snr", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__snr = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_snr(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=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"snr must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"snr\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__snr = t\n if hasattr(self, '_set'):\n self._set()",
"def set_snr(self, snr):\n return _raw_util.raw_message_set_snr(self, snr)",
"def set_snr(self, snr):\n return _raw_util.raw_message_sptr_set_snr(self, snr)",
"def snr_value(self):\n return _raw_util.raw_message_sptr_snr_value(self)",
"def snr_value(self):\n return _raw_util.raw_message_snr_value(self)",
"def setRxSNR(self, rx_SNR):\n \n self.rx_SNR = rx_SNR",
"def calculatesReceiverSNR(self, SNR=None):\n pass",
"def set_snr_list(self, snr_list):\n return _raw_util.raw_message_set_snr_list(self, snr_list)",
"def set_snr_list(self, snr_list):\n return _raw_util.raw_message_sptr_set_snr_list(self, snr_list)",
"def getRxSNR(self):\n \n return self.rx_SNR",
"def avg_snr(self, avg_snr):\n\n self._avg_snr = avg_snr",
"def SNR_labels(y_woutn, snr):\n # np.random.seed(seed_noise)\n std_signal = np.std(y_woutn)\n std_noise = np.sqrt((std_signal**2)/snr)\n noiseVec = np.random.normal(0.0, std_noise, len(y_woutn))\n return torch.tensor(y_woutn + noiseVec, dtype = torch.float)",
"def get_snr_values(self):\n return _raw_util.raw_message_sptr_get_snr_values(self)",
"def rsi_func(self, n):\n rsi = features.rsi_func(self.Close, n)\n self.X['RSI'] = rsi\n return rsi",
"def get_snr_values(self):\n return _raw_util.raw_message_get_snr_values(self)",
"def psnr(noisy: np.ndarray, clean: np.ndarray, dynamic: float=1.0) -> float:\n assert noisy.shape == clean.shape, \"Shape mismatch when computing PSNR.\"\n peak = dynamic * dynamic\n return 10 * math.log10(peak / mse(noisy, clean))",
"def estimate_snr(images):\n\n if len(images.shape) == 2: # in case of a single projection\n images = images[:, :, None]\n\n p = images.shape[1]\n n = images.shape[2]\n\n radius_of_mask = p // 2 - 1\n\n points_inside_circle = disc(p, r=radius_of_mask, inner=True)\n num_signal_points = np.count_nonzero(points_inside_circle)\n num_noise_points = p * p - num_signal_points\n\n noise = np.sum(np.var(images[~points_inside_circle], axis=0)) * num_noise_points / (num_noise_points * n - 1)\n\n signal = np.sum(np.var(images[points_inside_circle], axis=0)) * num_signal_points / (num_signal_points * n - 1)\n\n signal -= noise\n\n snr = signal / noise\n\n return snr, signal, noise",
"def bsnr(vblr, vnsy):\n\n blrvar = np.var(vblr)\n nsevar = np.var(vnsy - vblr)\n with np.errstate(divide='ignore'):\n rt = blrvar / nsevar\n return 10.0 * np.log10(rt)",
"def modify_SNR_and_BER(self, BER, SNR):\n for i, value in enumerate(self.configuration.DRoF_configuration.monitor.iteritems(), start=1):\n if np.math.isnan(SNR[i - 1]): # if NAN element\n value[1]._set_SNR(np.format_float_positional(1e-9))\n else:\n value[1]._set_SNR(SNR[i - 1])\n self.configuration.DRoF_configuration._set_BER(BER)",
"def plotSNR(audiofile, noiseRange=\"range(0,int(max(audio)*2), int(max(audio)*2/100))\"):\n samplingrate, audio = audiosignal(audiofile)\n audio = audio + np.random.randn(audio.size) * 0\n #noise is added in noiseRange\n SNR = [power(audio)/power(addNoise_and_STFT(audio, samplingrate, i)[1]) for i in eval(noiseRange)]\n \n plt.figure()\n plt.grid()\n plt.semilogx(20*np.log(SNR))\n plt.xlabel(\"samples\")\n plt.ylabel(\"SNR [DB]\")\n \n return SNR"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for ss, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/ss (uint8)
|
def _set_ss(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="ss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """ss must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="ss", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__ss = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_ss(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=\"ss\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"ss must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"ss\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__ss = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def set_state(self, st):\n self._i = st[0]\n self._j = st[1]",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def scos_version(self, scos_version):\n\n self._scos_version = scos_version",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def csr_state(self, csr_state):\n\n self._csr_state = csr_state",
"def setShininess(state: 'SoState', value: 'float') -> \"void\":\n return _coin.SoLazyElement_setShininess(state, value)",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def sweetness(self, sweetness):\n if sweetness is None:\n raise ValueError(\"Invalid value for `sweetness`, must not be `None`\") # noqa: E501\n\n self._sweetness = sweetness",
"def saltiness(self, saltiness):\n if saltiness is None:\n raise ValueError(\"Invalid value for `saltiness`, must not be `None`\") # noqa: E501\n\n self._saltiness = saltiness",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_queue_management_profiles_queue_management_profile_red_uniform_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def SoLazyElement_setShininess(state: 'SoState', value: 'float') -> \"void\":\n return _coin.SoLazyElement_setShininess(state, value)",
"def response_spectrum(self, ss, s1, soil_class, design_coefficient):\r\n\r\n self.data = {\r\n 'ss': ''\r\n }\r\n if soil_class == \"SA\":\r\n fa = 0.8\r\n fv = 0.8\r\n elif soil_class == \"SB\":\r\n fa = 1.0\r\n fv = 1.0\r\n elif soil_class == \"SC\":\r\n # fa\r\n if ss <= 0.5:\r\n fa = 1.2\r\n elif ss > 0.5 and ss < 1.0:\r\n fa = -0.4*ss+1.4\r\n else:\r\n fa = 1.0\r\n # fv\r\n fv = -s1+1.8\r\n elif soil_class == \"SD\":\r\n #fa\r\n if ss <= 0.25:\r\n fa = 1.6\r\n elif ss > 0.25 and ss < 0.75:\r\n fa = -0.88*ss+1.8\r\n elif ss >= 0.75 and ss < 1.25:\r\n fa = -0.4*ss+1.5\r\n else:\r\n fa = 1.0\r\n # fv\r\n if s1 <= 0.1:\r\n fv = 2.4\r\n elif s1 > 0.1 and s1 < 0.3:\r\n fv = -4*s1+2.8\r\n elif s1 >= 0.3 and s1 < 0.4:\r\n fv = -2*s1+2.4\r\n elif s1 >= 0.4 and s1 < 0.5:\r\n fv = -s1+2\r\n else:\r\n fv = 1.5\r\n else:\r\n # fa\r\n if ss <= 0.25:\r\n fa = 2.5\r\n elif ss > 0.25 and ss < 0.5:\r\n fa = -0.32*ss+3.3\r\n elif ss >= 0.5 and ss < 0.75:\r\n fa = -2*ss+2.7\r\n elif ss >= 0.75 and ss < 1.0:\r\n fa = -1.32*ss+2.1\r\n else:\r\n fa = 0.9\r\n # fv\r\n if s1 <= 0.1:\r\n fv = 3.5\r\n elif s1 > 0.1 and s1 < 0.2:\r\n fv = -3*s1+3.8\r\n elif s1 >= 0.2 and s1 < 0.4:\r\n fv = -4*s1+4\r\n else:\r\n fv = 2.4\r\n\r\n # sms and sm1\r\n sms = ss*fa\r\n sm1 = s1*fv\r\n\r\n # sds sd1 $s0\r\n sds = sms*design_coefficient\r\n sd1 = sm1*design_coefficient\r\n s0 = sds/2.5\r\n\r\n # T0, Ts\r\n t0 = 0.2*sd1/sds\r\n t_ = ts = sd1/sds\r\n\r\n # calculate another point\r\n x = [0, t0, ts]\r\n y = [s0, sds, sds]\r\n while t_ <= 8:\r\n x.append(t_)\r\n y.append(sd1/t_)\r\n t_ += 0.1\r\n\r\n # data[]\r\n # data['ss'] = ss\r\n # data['s1'] = s1\r\n # data['kelas_situs'] = soil_class\r\n # data['fa'] = fa\r\n # data['fv'] = fv\r\n # data['sms'] = sms\r\n # data['sm1'] = sm1\r\n # data['sds'] = sds\r\n # data['sd1'] = sd1\r\n # data['s0'] = s0\r\n # data['t0'] = t0\r\n # data['ts'] = ts\r\n # data['t'] = t\r\n # if t>0 and t<t0:\r\n # pass\r\n # elif t>t0 and t<ts:\r\n # sa = sds\r\n # else:\r\n # sa = sd1/t\r\n # data['sa'] = sa\r\n\r\n return x, y",
"def sslencswrate(self) :\n try :\n return self._sslencswrate\n except Exception as e:\n raise e"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for phy_rate, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/phy_rate (uint16)
|
def _set_phy_rate(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="phy-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """phy_rate must be of a type compatible with uint16""",
'defined-type': "uint16",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name="phy-rate", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint16', is_config=False)""",
})
self.__phy_rate = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_phy_rate(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..65535']},int_size=16), is_leaf=True, yang_name=\"phy-rate\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"phy_rate must be of a type compatible with uint16\"\"\",\n 'defined-type': \"uint16\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..65535']},int_size=16), is_leaf=True, yang_name=\"phy-rate\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint16', is_config=False)\"\"\",\n })\n\n self.__phy_rate = t\n if hasattr(self, '_set'):\n self._set()",
"def change_rate(self, new_rate):\n with self._lock:\n self.update_rate = new_rate",
"def getRate(self):\n return hal.getEncoderRate(self.encoder)",
"def change_rate(filename, ratio):\n rate, wav_rep = wavfile.read(filename)\n rate *= ratio\n wavfile.write(\"change_rate.wav\", int(rate), wav_rep)",
"def phy_number(self):\n return self._phy_number",
"def rate(self, neuron, **kwargs):\n try:\n return neuron.rate(trange=self.trange, **kwargs) # see if neuron is a Neuron\n except AttributeError:\n # neuron is probably a Neuron id:\n return self.r.n[neuron].rate(trange=self.trange, **kwargs)",
"def switchRate(self, v):\n # used to switch the rate's order of magnitude corresponding to pressed button\n self.rate = v",
"def get_rate(self):\r\n command = \":scan:rate?\\n\"\r\n self._log_write(command, mode=\"write\")\r\n self.ser.write(command)\r\n answer = self.ser.read(3)\r\n self._log_write(answer, mode=\"read\")\r\n rlvalue = float(answer[:-2])\r\n self.Stat = self.Stat._replace(rate=rlvalue)\r\n return rlvalue",
"def change_rate(filename, ratio):\n\n sample_rate, data = wavfile.read(filename)\n new_sample_rate = int(sample_rate * ratio)\n wavfile.write('change_rate.wav', new_sample_rate, data)\n return",
"def setGenderRecognitionRate(self, gender_rate):\n self.gender_recognition_rate = gender_rate",
"def phy_change_count(self):\n return self._phy_change_count",
"def relative_rate(self):\n return _OFDM_Cyclic_Prefix_swig.vamsi_OFDMCP_ff_sptr_relative_rate(self)",
"def httpcltttfp_6rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_6rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def update_weight(self, learn_rate):\n pass",
"def setRatiometric(self, state):\r\n if state == True:\r\n value = 1\r\n else:\r\n value = 0\r\n\r\n try:\r\n result = PhidgetLibrary.getDll().CPhidgetMotorControl_setRatiometric(self.handle, c_int(value))\r\n except RuntimeError:\r\n raise\r\n\r\n if result > 0:\r\n raise PhidgetException(result)",
"def relative_rate(self):\n return _raw_util.raw_pnc_frequency_modulator_fc_sptr_relative_rate(self)",
"def blink_rate(self, rate=None):\n if rate is None:\n return self._blink_rate\n rate = rate & 0x02\n self._blink_rate = rate\n self._write_cmd(_HT16K33_BLINK_CMD |\n _HT16K33_BLINK_DISPLAYON | rate << 1)",
"def httpcltttfp_1rate(self) :\n\t\ttry :\n\t\t\treturn self._httpcltttfp_1rate\n\t\texcept Exception as e:\n\t\t\traise e",
"def get_RxGain(rfCfgReg: int) -> RxGain:\n return RxGain((rfCfgReg[0] & 0x70) >> 4)",
"def modify_rate(rate, change):\n return rate + change * (1 - random.random() * 2)"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for connection_mode, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/connection_mode (enumeration)
|
def _set_connection_mode(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={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name="connection-mode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """connection_mode must be of a type compatible with enumeration""",
'defined-type': "openconfig-access-points:enumeration",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type="dict_key", restriction_arg={'A': {}, 'B': {}, 'G': {}, 'N': {}, 'AC': {}},), is_leaf=True, yang_name="connection-mode", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='enumeration', is_config=False)""",
})
self.__connection_mode = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_connection_mode(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'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"connection_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-wifi-mac:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'A': {}, u'AC': {}, u'B': {}, u'G': {}, u'N': {}},), is_leaf=True, yang_name=\"connection-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__connection_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def setConnectionMode(mode):\n # type: (int) -> None\n print(mode)",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_mode(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={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-routing-policy:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'IPV6': {}, 'IPV4': {}, 'MIXED': {}},), is_leaf=True, yang_name=\"mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/routing-policy', defining_module='openconfig-routing-policy', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_duplex_mode(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={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"duplex_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ethernet:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__duplex_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_duplex_mode(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={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"duplex_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ethernet:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=True)\"\"\",\n })\n\n self.__duplex_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_negotiated_duplex_mode(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={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"negotiated-duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"negotiated_duplex_mode must be of a type compatible with enumeration\"\"\",\n 'defined-type': \"openconfig-if-ethernet:enumeration\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'HALF': {}, 'FULL': {}},), is_leaf=True, yang_name=\"negotiated-duplex-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/interfaces/ethernet', defining_module='openconfig-if-ethernet', yang_type='enumeration', is_config=False)\"\"\",\n })\n\n self.__negotiated_duplex_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def set_operation_mode(self, operation_mode: str) -> None:\n raise NotImplementedError()",
"def toggleClientMode(self, mode):\n return self.request('toggleClientMode', {'mode': mode})",
"def set_mode(self, mode):\n self._mode = mode",
"def edge_analysis_mode(mode=pythoncom.Empty):\r\n return _base._rsf.edge_analysis_mode(mode)",
"def set_operating_mode(self, channel, mode):\n self.logger.debug('Set operating mode: {}'.format(mode))\n self.query(\"L{}I{}\".format(channel, self.MODES[mode]))",
"def rl_mode(self, rl_mode):\n if (self._configuration.client_side_validation and\n rl_mode is not None and rl_mode < 0): # noqa: E501\n raise ValueError(\"Invalid value for `rl_mode`, must be a value greater than or equal to `0`\") # noqa: E501\n\n self._rl_mode = rl_mode",
"def change_mode(self, change_mode):\n allowed_values = [\"immediate\", \"delayed\"]\n if change_mode not in allowed_values:\n raise ValueError(\n \"Invalid value for `change_mode` ({0}), must be one of {1}\"\n .format(change_mode, allowed_values)\n )\n\n self._change_mode = change_mode",
"def mode(ctx, mode, touch_eject, autoeject_timeout, chalresp_timeout, force):\n dev = ctx.obj['dev']\n if autoeject_timeout:\n touch_eject = True\n autoeject = autoeject_timeout if touch_eject else None\n\n if mode is not None:\n if mode.transports != TRANSPORT.CCID:\n autoeject = None\n if touch_eject:\n ctx.fail('--touch-eject can only be used when setting'\n ' CCID-only mode')\n\n if not force:\n if mode == dev.mode:\n click.echo('Mode is already {}, nothing to do...'.format(mode))\n ctx.exit()\n elif not dev.has_mode(mode):\n click.echo('Mode {} is not supported on this YubiKey!'\n .format(mode))\n ctx.fail('Use --force to attempt to set it anyway.')\n force or click.confirm('Set mode of YubiKey to {}?'.format(mode),\n abort=True, err=True)\n\n try:\n dev.set_mode(mode, chalresp_timeout, autoeject)\n if not dev.can_write_config:\n click.echo(\n 'Mode set! You must remove and re-insert your YubiKey '\n 'for this change to take effect.')\n except ModeSwitchError as e:\n logger.debug('Failed to switch mode', exc_info=e)\n click.echo('Failed to switch mode on the YubiKey. Make sure your '\n 'YubiKey does not have an access code set.')\n\n else:\n click.echo('Current connection mode is: {}'.format(dev.mode))\n supported = ', '.join(t.name for t in TRANSPORT\n .split(dev.config.usb_supported))\n click.echo('Supported USB interfaces are: {}'.format(supported))",
"def clientMode(self):\n\n return internals.blpapi_SessionOptions_clientMode(self.__handle)",
"def _set_fec_mode(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={'FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}},), is_leaf=True, yang_name=\"fec-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"fec_mode must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-platform-transceiver:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}},), is_leaf=True, yang_name=\"fec-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__fec_mode = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_fec_mode(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={'FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}},), is_leaf=True, yang_name=\"fec-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"fec_mode must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-platform-transceiver:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_AUTO': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'FEC_ENABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}, 'oc-platform-types:FEC_DISABLED': {'@namespace': 'http://openconfig.net/yang/platform-types', '@module': 'openconfig-platform-types'}},), is_leaf=True, yang_name=\"fec-mode\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/platform/transceiver', defining_module='openconfig-platform-transceiver', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__fec_mode = t\n if hasattr(self, '_set'):\n self._set()",
"async def async_set_operation_mode(self, operation_mode):\n mode = self._state_to_pizone[operation_mode]\n await self._wrap_and_catch(self._controller.set_mode(mode))"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for frequency, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/state/frequency (uint8)
|
def _set_frequency(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="frequency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """frequency must be of a type compatible with uint8""",
'defined-type': "uint8",
'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name="frequency", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='uint8', is_config=False)""",
})
self.__frequency = t
if hasattr(self, '_set'):
self._set()
|
[
"def _set_frequency(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=\"frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"frequency must be of a type compatible with uint8\"\"\",\n 'defined-type': \"uint8\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=int, restriction_dict={'range': ['0..255']}, int_size=8), is_leaf=True, yang_name=\"frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='uint8', is_config=False)\"\"\",\n })\n\n self.__frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def setFrequency(self, frequency: int) -> None:\n self.frequency = frequency",
"def set_frequency(self, f, force=False):\n if not force and self.get_frequency() == int(f):\n return\n self._write('%s*F' % str(f).zfill(6))",
"def get_frequency(self) -> float:\n return self.fpga_frequency",
"def _set_frequency(self, frequency: float) -> None:\n frequency = int(round(frequency))\n\n self._parent._lib.set_frequency(self._parent._device_handle, self._axis, frequency)",
"def set_freq(self, f_obs):\n return _radio_astro_swig.detect_set_freq(self, f_obs)",
"def _set_operating_frequency(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'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"operating_frequency must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=False)\"\"\",\n })\n\n self.__operating_frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_operating_frequency(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'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"operating_frequency must be of a type compatible with identityref\"\"\",\n 'defined-type': \"openconfig-wifi-mac:identityref\",\n 'generated-type': \"\"\"YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_type=\"dict_key\", restriction_arg={u'oc-wifi-types:FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'oc-wifi-types:FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_5GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2_5_GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}, u'FREQ_2GHZ': {'@namespace': u'http://openconfig.net/yang/wifi/types', '@module': u'openconfig-wifi-types'}},), default=unicode(\"oc-wifi-types:FREQ_2_5_GHZ\"), is_leaf=True, yang_name=\"operating-frequency\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='identityref', is_config=True)\"\"\",\n })\n\n self.__operating_frequency = t\n if hasattr(self, '_set'):\n self._set()",
"def set_frequency(self):\n if self.laser_status:\n self._fiber_shooting_logic.set_frequency(self._mw.frequency_spinBox.value())\n else:\n pass\n return",
"def set_freq(self, f_obs):\n return _radio_astro_swig.detect_sptr_set_freq(self, f_obs)",
"def update_frequency(self, update_frequency):\n\n self._update_frequency = update_frequency",
"def get_frequency(self, **kwargs):\n self.resource.clear()\n channel = kwargs.get(\"channel\", self.active_channel)\n use_log = \"LOG\" in self.scpi.query_sweep_type(channel).upper()\n f_start = self.scpi.query_f_start(channel)\n f_stop = self.scpi.query_f_stop(channel)\n f_npoints = self.scpi.query_sweep_n_points(channel)\n if use_log:\n freq = np.logspace(np.log10(f_start), np.log10(f_stop), f_npoints)\n else:\n freq = np.linspace(f_start, f_stop, f_npoints)\n\n frequency = skrf.Frequency.from_f(freq, unit=\"Hz\")\n frequency.unit = kwargs.get(\"f_unit\", \"Hz\")\n return frequency",
"def frequency(self) -> int:\n return pulumi.get(self, \"frequency\")",
"def set_frequency(self, channel, freq):\n self.check_channel(channel)\n channel, value = self.check_freq(channel, freq)\n self.query(\"L{}F{}\".format(channel, value))",
"def calculateFrequency(self):\n repeat = 0\n f =0.0\n with i2clib.I2CMaster() as b:\n results = b.transaction(\n reading(self.add, 5)\n )\n\n uF = results[0][0]&0x3F\n lF = results[0][1]\n # this is probably not the best way of doing this but I was having issues with the\n # frequency being off by as much as 1.5 MHz\n current_freq = round((float(round(int(((int(uF)<<8)+int(lF))*cof/4-22500)/100000)/10)-.2)*10)/10\n return current_freq",
"def set_frequency(self, frequency):\r\n self.obs.centerFreqHz = float(frequency)\r\n self.ref.centerFreqHz = float(frequency)\r\n self.ave.centerFreqHz = float(frequency)\r\n self.hot.centerFreqHz = float(frequency)\r\n self.cold.centerFreqHz = float(frequency)\r\n deltaNu = self.obs.bandwidthHz/float(self.vlen)\r\n n0 = self.obs.centerFreqHz - (self.obs.bandwidthHz/2.)\r\n nu = n0\r\n print(\"Setting Frequency: %10.0f Hz\" % (self.obs.centerFreqHz))\r\n nx = len( self.obs.xdata)\r\n if nx != self.vlen:\r\n self.update_len(self.obs)\r\n for iii in range(self.vlen):\r\n self.obs.xdata[iii] = nu\r\n nu = nu + deltaNu",
"def setFreq(wifi, freq):\n try:\n wifi.setFrequency(freq)\n except Exception, detail:\n # Unexpected errors\n print type(detail), detail",
"def setFrequency(self, channel, frequency):\r\n self.setFrequencies(channel, [frequency])",
"def query_frequency(self):\n ret = self.com.query('FREQ?')\n return ret",
"def getFrequency(self) -> int:\n return self.frequency"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Setter method for state, mapped from YANG variable /access_points/access_point/ssids/ssid/clients/client/client_rf/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_ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)
except (TypeError, ValueError):
raise ValueError({
'error-string': """state must be of a type compatible with container""",
'defined-type': "container",
'generated-type': """YANGDynClass(base=yc_state_openconfig_access_points__access_points_access_point_ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name="state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/access-points', defining_module='openconfig-access-points', yang_type='container', is_config=False)""",
})
self.__state = t
if hasattr(self, '_set'):
self._set()
|
[
"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_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_connection_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_dot11k_neighbors_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_clients_client_client_capabilities_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"def _set_client_rf(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=yc_client_rf_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf, is_container='container', yang_name=\"client-rf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"client_rf must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_client_rf_openconfig_wifi_mac__ssids_ssid_clients_client_client_rf, is_container='container', yang_name=\"client-rf\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__client_rf = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_band_steering_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11r_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_interface_ref_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_dot11v_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_telemetry__telemetry_system_subscriptions_dynamic_subscriptions_dynamic_subscription_sensor_paths_sensor_path_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/telemetry', defining_module='openconfig-telemetry', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_interfaces_interface_input_classifiers_classifier_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_interfaces_interface_input_classifiers_classifier_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(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, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_local_routing__local_routes_static_routes_static_next_hops_next_hop_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/local-routing', defining_module='openconfig-local-routing', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos_interfaces__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_terms_term_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=False)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_interfaces_interface_input_classifiers_classifier_terms_term_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=False)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_wifi_mac__ssids_ssid_wmm_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/wifi/mac', defining_module='openconfig-wifi-mac', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()",
"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_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\n except (TypeError, ValueError):\n raise ValueError({\n 'error-string': \"\"\"state must be of a type compatible with container\"\"\",\n 'defined-type': \"container\",\n 'generated-type': \"\"\"YANGDynClass(base=yc_state_openconfig_qos__qos_interfaces_interface_input_state, is_container='container', yang_name=\"state\", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions=None, namespace='http://openconfig.net/yang/qos', defining_module='openconfig-qos', yang_type='container', is_config=True)\"\"\",\n })\n\n self.__state = t\n if hasattr(self, '_set'):\n self._set()"
] |
{
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.