How To Run Script From Mininet Shell?
I've got an assignment in SDN course to create a Load Balancer using mininet and pox controller. I have the topology file, which I've created using Python and mininet, and the cont
Solution 1:
You can use mininet API to do it. Once your topology is created. You can include a loop in the same mininet file, which randomly selects a client and ping switch. Let us say the selected client node is h1.
h1.cmd(<your command which is to be run at h1to ping switch>)
command passed as argument will be run at h1's terminal.
cmdPrint
function does the same except it also prints output. For an exclusive list of mininet API funcions for a node, please refer mininet api reference
Post a Comment for "How To Run Script From Mininet Shell?"