def _update_interfaces(self):
self._interfaces = {}
root = etree.fromstring(self._introspect_xml)
for e in root.iter('interface'):
name = e.attrib['name']
self._interfaces[name] = Interface(
self, self._service, self._address, self._path, e,
self._camel_convert, self._timeout_ms,
self._changed_coroutines.get(name, None)
)
for e in root.iter('node'):
try:
self._nodes.append(e.attrib['name'])
except KeyError:
pass
评论列表
文章目录