dist/tools/zep_dispatch: Topogen updated #348
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
Topgen and its makefiles are updated to generate automatically a random mac address to each node. Also was added a Makefile variable to redefine a number of nodes to generate in new topology file. The process consist in use
TOPOLOGY=[name_of_file_to_generate]
to use the topology generator (topogen
). note: the file doesn't exist to the topogen works correctly, so, if you want to use again the topogen and replace the generated topology file, you have to remove it. About mac address generation, this feature allows to use foren6 layouts. to place in correct position each node (In case that you are create an node distribution model). Topologies are parsing correctly if the mac address of some node is assigned previously the build process.Testing procedure
Run the dispatch to generate a random topology file.
the
NODES
makefile variable specify the number of nodes to be generated. each node should be received the respect and unique random mac_address.The expected output file should see.
New feature added
The new script
launch.sh
allows you load all nodes infile.topo
automatically and run them in foren6 sniffer from zep_dispatcher tool.Only you need to type
Note: this script only run in ubuntu. preferred using
gnome-terminal
setting its own options parameters.Recommendation: You could run this auto-launcher in a terminal (gnome-terminal). This will look better than running under VScode_shell or antoher kind of terminal.
Issues/PRs references