Skip to content

Commit

Permalink
docs: updated emane python example to use updated set_config
Browse files Browse the repository at this point in the history
  • Loading branch information
bharnden committed Mar 11, 2022
1 parent f545726 commit d684b8e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions docs/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,11 @@ EMANE Model Configuration:
```python
from core import utils

# emane network specific config
session.emane.set_model_config(emane.id, EmaneIeee80211abgModel.name, {
"unicastrate": "3",
})

# node specific config
session.emane.set_model_config(node.id, EmaneIeee80211abgModel.name, {
"unicastrate": "3",
})

# node interface specific config
# standardized way to retrieve an appropriate config id
# iface id can be omitted, to allow a general configuration for a model, per node
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",
})
```
Expand Down

0 comments on commit d684b8e

Please sign in to comment.