Skip to content

Edit EMANE Properties of CoreNode in running simulation #727

Answered by bharnden
derkin123 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is an updated example where I went ahead and scripted the above:

from core.api.grpc.client import CoreGrpcClient
from core.api.grpc.wrappers import ConfigOption, Interface, Link, Node, Position, \
    ServiceAction
from core.emane.models.ieee80211abg import EmaneIeee80211abgModel

client = CoreGrpcClient()
client.connect()

session_id = 1
emane_net_id = 1
position = Position(200, 200)
emane_config = {
    (EmaneIeee80211abgModel.name, 0): {
        "txpower": ConfigOption(name="txpower", value="1.0")
    }
}

# add nodes
node2 = Node(
    id=2,
    name="Node2",
    model="mdr",
    emane_model_configs=emane_config,
    position=position,
)
client.add_node(session_id=session_id, node=n…

Replies: 6 comments 16 replies

Comment options

You must be logged in to vote
11 replies
@bharnden
Comment options

@bharnden
Comment options

@derkin123
Comment options

@bharnden
Comment options

@derkin123
Comment options

Comment options

You must be logged in to vote
1 reply
@bharnden
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@derkin123
Comment options

@bharnden
Comment options

@derkin123
Comment options

@bharnden
Comment options

Answer selected by derkin123
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants