I am new to mininet and python. i want to execute a python script in mininet, but i don't know how can we run python scripts in mininet and where to store .py files in order to call from mininet.
any idea please?
When you open mininet just navigate to custom folder by typing:
cd mininet/custom
then type:
ls
which will show you the current files inside the custom file.
Then you can use the nano
text editor to create or edit a python/text file, for example you can type:
nano custom.py
and it will open the custom file that has an example of using python code. Then you can exit it and save it as a new file.
That's how I started to edit and write python codes, then it will become easier once you learn how to SSH the mininet using putty.
good luck