docs: updated emane python example to use updated set_config
This commit is contained in:
parent
f545726ed5
commit
d684b8eb5a
1 changed files with 4 additions and 12 deletions
|
@ -341,19 +341,11 @@ EMANE Model Configuration:
|
||||||
```python
|
```python
|
||||||
from core import utils
|
from core import utils
|
||||||
|
|
||||||
# emane network specific config
|
# standardized way to retrieve an appropriate config id
|
||||||
session.emane.set_model_config(emane.id, EmaneIeee80211abgModel.name, {
|
# iface id can be omitted, to allow a general configuration for a model, per node
|
||||||
"unicastrate": "3",
|
|
||||||
})
|
|
||||||
|
|
||||||
# node specific config
|
|
||||||
session.emane.set_model_config(node.id, EmaneIeee80211abgModel.name, {
|
|
||||||
"unicastrate": "3",
|
|
||||||
})
|
|
||||||
|
|
||||||
# node interface specific config
|
|
||||||
config_id = utils.iface_config_id(node.id, iface_id)
|
config_id = utils.iface_config_id(node.id, iface_id)
|
||||||
session.emane.set_model_config(config_id, EmaneIeee80211abgModel.name, {
|
# set emane configuration for the config id
|
||||||
|
session.emane.set_config(config_id, EmaneIeee80211abgModel.name, {
|
||||||
"unicastrate": "3",
|
"unicastrate": "3",
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue