daemon: added class variable type hinting to core.emane
This commit is contained in:
parent
ef3cf5697d
commit
6201875b78
11 changed files with 116 additions and 100 deletions
|
@ -1090,12 +1090,12 @@ class WlanNode(CoreNetwork):
|
|||
|
||||
def update_mobility(self, config: Dict[str, str]) -> None:
|
||||
if not self.mobility:
|
||||
raise ValueError(f"no mobility set to update for node({self.id})")
|
||||
raise CoreError(f"no mobility set to update for node({self.name})")
|
||||
self.mobility.update_config(config)
|
||||
|
||||
def updatemodel(self, config: Dict[str, str]) -> None:
|
||||
if not self.model:
|
||||
raise ValueError(f"no model set to update for node({self.id})")
|
||||
raise CoreError(f"no model set to update for node({self.name})")
|
||||
logging.debug(
|
||||
"node(%s) updating model(%s): %s", self.id, self.model.name, config
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue