[ovs-discuss] GRE Tunnel Creation with JSON RPC

Gurucharan Shetty shettyg at nicira.com
Fri Jul 19 17:42:00 UTC 2013


One way to understand the correct jsonrpc messages (or reverse engineer) is
to run a ovs-vsctl command with the "-v" option.

ex: ovs-vsctl -v add-br br1



On Wed, Jul 17, 2013 at 6:16 PM, Dmita Levy <dlevy022 at fiu.edu> wrote:

> Hello,
>
> I am Undergraduate student doing Open vSwitch and OpenFlow research so
> please bare with me as I am still learning. I am trying to add a GRE
> tunnel, using JSON RPC, to an install of Open vSwitch - the only options I
> have configured are the "manager" option to listen on ptcp: 6632 and one
> bridge named "bridge1". I am connecting successfully and sending the
> following request:
>
> REQUEST:
> {"method":"transact","id":"001","params":["Open_vSwitch",{"op":"insert","table":"Interface","row":{"name":"gre1","type":"gre","options":["map",[["remote_ip","172.16.1.2"],["csum","true"],["key","1"]]]},"uuid-name":"new_iface"},{"op":"insert","table":"Port","row":{"name":"gateway
> ","interfaces":["set",[["named-uuid","new_iface"]]]},"uuid-name":"new_port"}]}
>
>
> I get the following response:
>
> {"id":"001","error":null,"result":[{"uuid":["uuid","95ab1d87-5649-49a0-ae58-53efbbcb3757"]},{"uuid":["uuid","aeb7e783-73a3-4717-97e8-7ab629e5ac0c"]}]}
>
> But when I run the ovs-vsctl show command there is no GRE port info
> listed. I am not sure what I am doing wrong. I followed this link
> https://mailman.stanford.edu/pipermail/openflow-discuss/2010-February/000744.htmlshowing an example of the correct request and modified it a bit. I also
> followed this
> http://tools.ietf.org/html/draft-pfaff-ovsdb-proto-02#section-5.2.4 as
> well but I'm not sure what I'm missing. I have read the conf.db and I think
> I have a good "handle" on that but still know I'm missing something
> minor..or possibly major.
>
> Any help or clarification is appreciated. Thanks in advance.
>
> -Dmita
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130719/3078dd60/attachment.html>


More information about the discuss mailing list