Add documentation to various OVS RM and change the RM name OVSWitch to OVSSwitch
[nepi.git] / examples / openvswitch / ovs_ping_3switches_loop.py
index 9465f08..54b2083 100644 (file)
 #    You should have received a copy of the GNU General Public License
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
-#         Alexandros Kouvakas <alexandros.kouvakas@gmail.com>
+# Authors :  Julien Tribino <julien.tribino@inria.fr>
+#          Alina Quereilhac <alina.quereilhac@inria.fr>
 #
-#         Switch1 ------- Switch2         
-#            /                \           
-#           /                  \          
-#          /                    \         
-#       Host1                  Host2      
+# Topology :
+#
+#                  Host3
+#                    |
+#                    |
+#                    |   
+#                 Switch3                         
+#                 /    \          
+#                /      \                
+#               /        \              
+#              /          \             
+#         Switch1 ----- Switch2         
+#            /              \           
+#           /                \          
+#          /                  \         
+#       Host1                Host2      
 
 
 
@@ -44,7 +55,7 @@ def add_node(ec, host, user, pl_user, pl_password):
     return node
 
 def add_ovs(ec, bridge_name, virtual_ip_pref, controller_ip, controller_port, node):
-    ovs = ec.register_resource("OVSWitch")
+    ovs = ec.register_resource("OVSSwitch")
     ec.set(ovs, "bridge_name", bridge_name)
     ec.set(ovs, "virtual_ip_pref", virtual_ip_pref)
     ec.set(ovs, "controller_ip", controller_ip)