Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node during runtime #93

Open
wants to merge 15 commits into
base: Develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add node
amjadmajid committed Oct 13, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 317d3248b7e326d2b600425459b8f866a531ed62
2 changes: 0 additions & 2 deletions config/classicalNet.cfg
Original file line number Diff line number Diff line change
@@ -10,5 +10,3 @@
Bob, localhost, 8812
Charlie, localhost, 8813
David, localhost, 8814


1 change: 0 additions & 1 deletion config/logging.cfg
Original file line number Diff line number Diff line change
@@ -27,4 +27,3 @@ args=(sys.stdout,)
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=

14 changes: 14 additions & 0 deletions run/addNewNode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh
echo
echo "$1, localhost, $2" >> "../config/appNodes.cfg"
echo
echo "$1, localhost, $2" >> "../config/classicalNet.cfg"
echo
echo "$1, localhost, $2" >> "../config/cqcNodes.cfg"
echo
echo "$1, localhost, $2" >> "../config/virtualNodes.cfg"
echo
echo $1 >> "../config/Nodes.cfg"

python "$NETSIM/run/startNode.py" "$1" &
python "$NETSIM/run/startCQC.py" "$1" &