Version 4 (modified by 11 years ago) (diff) | ,
---|
Hints about using GENI Infrastructure as well as other tools in the GENI system
git Commands
git clone [url] git add -A . (add all files and folders in the current directory) git commit -m "commit message" git status (to check the status of your local copy) git fetch origin git merge origin/master git push origin master (upload your local copy to master (global) repository)
OpenFlow Trema
To restart Trema controller as well as the attached switch:
1. kill trema process: kill $(pidof ruby) 2. delete lock file: rm /opt/trema...../tmp/pid/controller.pid (controller is the name of your controller, in the case of Load Balancing, its `Load_Balancer`) 3. unlink the switches from controller: ovs-vsctl del-controller br0 4. start controller: /opt/trema....../trema run controller.rb (controller is the name of your controller, in the case of Load Balancing, its load_balancer.rb) 5. link switches to the controller: ovs-vsctl set-controller br0 tcp:127.0.0.1 (might need to wait for 2 seconds for the switch to connect to the controller, to verify that, print something in the "switch_ready" function so that you can see the output when switch is connected)