MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_net_work

Method get_net_work

mod/project/node/nodeutil/base.py:254–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

252 return None
253
254 def get_net_work(self) -> Tuple[Optional[dict], str]:
255 data, err = self._request("/system", "GetNetWork")
256 if err:
257 return None, err
258 if isinstance(data, dict) and "cpu" in data and "mem" in data:
259 return data, ""
260 return None, "数据格式错误: %s" % str(data)
261
262 def get_tmp_token(self) -> Tuple[str, str]:
263 data, err = self._request("/config", "get_tmp_token")

Callers

nothing calls this directly

Calls 1

_requestMethod · 0.95

Tested by

no test coverage detected