[ovs-dev] how to create new ovsdb tables and code c funtion related?

lg.yue kernelluck at 163.com
Wed Feb 15 05:08:52 UTC 2017


Hi, everyone:


一. after i change ovn/ovn-[sn]b.ovsschema,  how to apply the changes?  makefile compiles ovn/ovn-[sn]b.ovsschema to  ovn/lib/ovn-[s,n]b-idl.ovsidl, i can not  find anyone use ovn-[s,n]b-idl.ovsidl.
二. lets take sb for example.
 ovsdb-server --detach --monitor -vconsole:off --log-file=/var/log/openvswitch/ovsdb-server-sb.log --remote=punix:/run/openvswitch/ovnsb_db.sock --pidfile=/run/openvswitch/ovnsb_db.pid --remote=db:OVN_Southbound,SB_Global,connections --unixctl=ovnsb_db.ctl --private-key=db:OVN_Southbound,SSL,private_key --certificate=db:OVN_Southbound,SSL,certificate --ca-cert=db:OVN_Southbound,SSL,ca_cert /var/lib/openvswitch/ovnsb_db.db
    1. who launches the ovsdb-server process?  and when?
    2. how  /var/lib/openvswitch/ovnsb_db.db is created?
    3. 'ovn-sbctl set-connection ptp:6642'  how this instruction associates port 6642 with ovsdb-server (please tell the source code)
三. supported the new db is created, whether  or not i need to code c funtion  like sbrec_idl_class in ovn/lib/ovn-sb-idl.c




 too many questions, please help me figure it out.
thanks very much








At 2017-02-14 21:15:42, "Valentine Sinitsyn" <valentine.sinitsyn at gmail.com> wrote:
>Hi,
>
>Look at ovn/ovn-[sn]b.ovsschema. It's JSON. You'll also need to update 
>the documentation and the cksum; make explains how to do it.
>
>Best,
>Valentine
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list