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)

# Define a command instance which is equivalent to
# `ovs-vsctl set interface gre0 bfd:enable=true`
cmd = ovs_vsctl.VSCtlCommand('set', ('Interface', 'gre0',
'bfd=enable=true'))

# Run it.
vsctl.run_command([cmd])


2015-02-11 14:46 GMT+08:00 Padma Jayasankar <[email protected]>:

> 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, 2015 at 7:22 AM, Wei-Li Tang <[email protected]> wrote:
>
>> 2015-02-09 22:30 GMT+08:00 Padma Jayasankar <[email protected]>:
>>
>>> 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,
>>
>> Are you using an openvswitch? You may do this through OVSDB and take a
>> look at ryu/lib/ovs/ which is an OVSDB interaction library for Ryu.
>>
>>
-- 
Sincerely,

Wei-Li Tang
RD Engineer, Xinguard Inc.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to