What is the best way to update the nodes locations from external source? #610
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
The best way would be over the gRPC API, which would have to be configured to serve the system externally.
Update the line to use the address to listen on: Note that this does expose your system to have a service that can run arbitrary commands as root. There is some documentation on using gRPC here; https://coreemu.github.io/core/grpc.html And the call to move nodes in the current version, would be here and here. |
Beta Was this translation helpful? Give feedback.
-
You would just leave the state the same and can add nodes and links after instantiate. One issue that would stand out is that the links (interfaces) tied to a node can determine what happens for a service. So if you modify a node by way of adding links during runtime and that node has a service that dynamically configures itself depending upon interface information, then you would need to restart those services. |
Beta Was this translation helpful? Give feedback.
-
type=3 means that the respective node shall be shutdown
so all nodes should be removed and shutdown
After pressing 'q':
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am using 2 threads.
If something is in the queue
See here some of the code snippets showing the part where nodes created , updated and canceled.
The code simply uses the Python API to create, update and cancel the nodes. My question is:
Hope that this helps better to understand what I am doing. Thank you for your help! |
Beta Was this translation helpful? Give feedback.
The best way would be over the gRPC API, which would have to be configured to serve the system externally.
/etc/core/core.conf
Update the line to use the address to listen on:
grpcaddress = localhost
Note that this does expose your system to have a service that can run arbitrary commands as root.
There is some documentation on using gRPC here; https://coreemu.github.io/core/grpc.html
And the call to move nodes in the current version, would be here and here.