Statistics
| Branch: | Revision:

iof-tools / confFileGenerator @ 163b30ce

Name Size Revision Age Author Comment
  baseFiles d31510a1 over 1 year tiamilani mrai value imported from graphml file to conf f...
  templates d074d18f over 1 year Michele Segata add strict bind option to listen on a specific ...
Edge.py 9.84 KB 6c2a72ac over 1 year tiamilani refactoring and bug fixes
Node.py 6.79 KB 163b30ce over 1 year Michele Segata confFileGenerator: automatically generate netwo...
README.md 921 Bytes 29b7b024 over 1 year tiamilani Updated README, generator working, but not test...
confFileGen.py 2.79 KB e31c0b01 over 1 year Michele Segata scratch solution to generate ip commands for in...
constants.py 1.68 KB 7ee8e73f over 1 year Michele Segata change file configuration path from /etc/ to lo...

Latest revisions

# Date Author Comment
163b30ce 08/14/2019 01:52 PM Michele Segata

confFileGenerator: automatically generate network configuration (to be improved)

d074d18f 08/13/2019 02:13 PM Michele Segata

add strict bind option to listen on a specific ip address

e31c0b01 08/02/2019 11:52 AM Michele Segata

scratch solution to generate ip commands for interface configuration

13bed70a 08/02/2019 11:52 AM Michele Segata

temporarily disable the mrai parameter in configuration files

7ee8e73f 08/02/2019 11:52 AM Michele Segata

change file configuration path from /etc/ to local path

96cfd93e 08/02/2019 11:52 AM tiamilani

refactoring and bug fixes

6c2a72ac 08/02/2019 11:52 AM tiamilani

refactoring and bug fixes

d31510a1 08/02/2019 11:52 AM tiamilani

mrai value imported from graphml file to conf files

e95eeecf 06/30/2019 05:23 PM tiamilani

bug fixes

1fd2a19a 06/29/2019 04:24 PM tiamilani

Generator finished and tested on the python simulator, bug fixes

View revisions

README


Basic test

gen2 for now stable but it still uses /30 networks for the point to point networks between nodes

Requirements

The generator require a well formed graph defined in graphml format generated with the function internet_as_graph() by the networkx library.

The function is not by default on the networkx library, you have to download and install it following this link:

https://github.com/leonardomaccari/networkx/tree/bgp_topology

Are also required the following python library: * getopt * os.path * shutil * sys * ipaddress

Test

launch the generator on a basic test

python3 confFileGen.py --graph small_g.graphml --out out/

If the file small_g.graphml is not founded it will be created with a predefined number of nodes (defined inside constants.py)

If the dir 'out/' does not exists it will be created

Now inside the folder out you will find all the files needed to start the nodes

Also available in: Atom