fixed tlv api changing wlan config during runtime, fixed for grpc as well and added grpc test
This commit is contained in:
parent
5b1c9a6e68
commit
38c58d9603
4 changed files with 26 additions and 5 deletions
|
@ -1039,14 +1039,14 @@ class WlanNode(CoreNetwork):
|
|||
if not self.model:
|
||||
raise ValueError("no model set to update for node(%s)", self.id)
|
||||
logging.info("node(%s) updating model(%s): %s", self.id, self.model.name, config)
|
||||
self.model.set_configs(config, node_id=self.id)
|
||||
self.model.update_config(config)
|
||||
if self.model.position_callback:
|
||||
for netif in self.netifs():
|
||||
netif.poshook = self.model.position_callback
|
||||
if netif.node is not None:
|
||||
x, y, z = netif.node.position.get()
|
||||
netif.poshook(netif, x, y, z)
|
||||
self.model.updateconfig()
|
||||
self.model.setlinkparams()
|
||||
|
||||
def all_link_data(self, flags):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue