i have figured out the problem.
try the following code
        vsctl = ovs_vsctl.VSCtl("tcp:192.168.0.101:6634")        cmd1 = 
ovs_vsctl.VSCtlCommand('add-port', ('OVS-SWITCH','gre0'))        cmd2 = 
ovs_vsctl.VSCtlCommand('set', 
('Interface','gre0','type=gre','options=local_ip=192.168.0.101,remote_ip=192.168.0.100'))
        vsctl.run_command([cmd1, cmd2])
thanks.

Zhao Jun

From: [email protected]
To: [email protected]
Date: Sat, 4 Jul 2015 11:13:41 +0800
Subject: [Ryu-devel] ryu.lib.ovs.vsctl.py




hi,
i have a question.
i want to execute the following commands in remote ryu controller
1) ovs-vsctl add-br OVS-SWITCH2) ovs-vsctl add-port OVS-SWITCH gre0 -- set 
interface gre0 type=gre options:remote_ip=192.168.0.100
how can i use function VSCtlCommand() to construct these two commands?
is there document explain the args format?
thanks.

Zhao Jun                                          

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel                          
          
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to