Re: [Ryu-devel] Enabling BFD from the Controller

2015-03-03 Thread Wei-Li Tang
2015-02-27 22:01 GMT+08:00 Padma Jayasankar : > Hi, > I want to set more than one bfd parameters from the controller. ie) i > have to execute the following command > sudo ovs-vsctl set interface s6-eth1 bfd:enable=true bfd:min_rx=100 > bfd:min_tx=100 > > if i use > cmd = ovs_vsctl.VSCtlCommand(

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-27 Thread Padma Jayasankar
Hi, I want to set more than one bfd parameters from the controller. ie) i have to execute the following command sudo ovs-vsctl set interface s6-eth1 bfd:enable=true bfd:min_rx=100 bfd:min_tx=100 if i use cmd = ovs_vsctl.VSCtlCommand('set', ('Interface', 'eth2', 'bfd=enable=true', 'bfd=min_tx=10

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-17 Thread Padma Jayasankar
Hi, Thanks a lot. After setting the port for remote access of OVSDB server, it is working fine. Thanks and Regards, Padma V On Tue, Feb 17, 2015 at 7:40 AM, Wei-Li Tang wrote: > Hi, > > 2015-02-17 0:13 GMT+08:00 Padma Jayasankar : > >> Hi, >> I am using the following snippet(based on the code

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-16 Thread Wei-Li Tang
Hi, 2015-02-17 0:13 GMT+08:00 Padma Jayasankar : > Hi, > I am using the following snippet(based on the code snippet u sent) > > OVSDB_REMOTE_ADDR = "tcp:192.168.56.102:6634" > Hmm... Was tcp/6634 occupied by other daemon? Make sure your ovsdb-server is listening on tcp/6634 (or other port you

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-16 Thread Padma Jayasankar
Hi, I am using the following snippet(based on the code snippet u sent) OVSDB_REMOTE_ADDR = "tcp:192.168.56.102:6634" # Initialize a VSCtl instance. vsctl = ovs_vsctl.VSCtl(OVSDB_REMOTE_ADDR) # Define a command instance which is equivalent to # `ovs-vsctl set interface gre0 bfd:e

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-16 Thread Wei-Li Tang
2015-02-16 21:01 GMT+08:00 Padma Jayasankar : > Hi, > Thanks for the detailed information. I tried with this code. But i am > getting some 'protocol error'. i am getting the following error message > > File "/home/padma/ryu/ryu/app/simple_switch.py", line 87, in > _packet_in_handler > vsctl.

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-16 Thread Padma Jayasankar
Hi, Thanks for the detailed information. I tried with this code. But i am getting some 'protocol error'. i am getting the following error message File "/home/padma/ryu/ryu/app/simple_switch.py", line 87, in _packet_in_handler vsctl.run_command([cmd]) File "/usr/local/lib/python2.7/dist-pac

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-13 Thread Wei-Li Tang
Hello, Please refer to the following codes which enables bfd for a gre interface. === from ryu.lib.ovs import vsctl as ovs_vsctl # proto:addr where your OVSDB server listens to. OVSDB_REMOTE_ADDR = "tcp:192.168.0.1:6634" # Initialize a VSCtl instance. vsctl = ovs_vsctl.VSCtl(OVSDB_REMOTE_ADDR)

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-10 Thread Padma Jayasankar
Hi, Thanks for the information. I went through the files in ryu/lib/ovs. I thought that i have to use vsctl.py as i have to run ovs-vsctl set interface command. But i couldn't understand , hoow to use that? Can u give some more information on that. Thanks and Regards, Padma V On Tue, Feb 10, 201

Re: [Ryu-devel] Enabling BFD from the Controller

2015-02-09 Thread Wei-Li Tang
2015-02-09 22:30 GMT+08:00 Padma Jayasankar : > Hi, > Is it possible to enable bfd for a switch from the controller? I have > to do this dynamically for my project. I am able to do this statically > using ovs-vsctl commands? Is there any way to do it dynamically from the > controller. > Hi, A

[Ryu-devel] Enabling BFD from the Controller

2015-02-09 Thread Padma Jayasankar
Hi, Is it possible to enable bfd for a switch from the controller? I have to do this dynamically for my project. I am able to do this statically using ovs-vsctl commands? Is there any way to do it dynamically from the controller. Thanks and Regards, Padma V -