On Sat, Oct 13, 2012 at 05:37:05AM +0900, FUJITA Tomonori wrote:
> On Fri, 12 Oct 2012 19:43:49 +0900
> Isaku Yamahata <[email protected]> wrote:
> 
> > On Fri, Oct 12, 2012 at 07:39:22AM +0900, FUJITA Tomonori wrote:
> >> On Thu, 11 Oct 2012 17:17:42 +0900
> >> Isaku Yamahata <[email protected]> wrote:
> >> 
> >> > Signed-off-by: Isaku Yamahata <[email protected]>
> >> > ---
> >> >  ryu/lib/ovs/vsctl.py | 1601 
> >> > ++++++++++++++++++++++++++++++++++++++++++++++++++
> >> >  1 file changed, 1601 insertions(+)
> >> >  create mode 100644 ryu/lib/ovs/vsctl.py
> >> 
> >> Can we have _only_ what are necessary for GRE app?
> > 
> > Will give it a try.
> 
> I meant that why you reinvent vsctl? the bridge code can directly use
> the python library? Why we need the cache code in the vsctl code?

Because we need python version of
'vsctl list-ports/add-port/del-port/set/get/find/'.

- It's not so simple to manipulate ovsdb in transactional way. OVS db
  binding(both C and python) is designed such that transaction abort needs
  to be handed by client. Python couter part is also necessary.

- cache code.
  It is necessary to find out if a given port is on a given bridge due
  to vswitch db schema. It needs to build a tree from bridge table, to port
  table and interface table.

  I also found that quantum_adapter doesn't work well. I put some work around
  into it for now. It assumes that single ovsdb has a single ovs bridge. But
  it's not correct. Now quantum-agent creates br-int, br-ex. And other ovs 
  bridge depending on configuration.
  But I don't see easy fix for that, and think the right fix would be to 
  create the tree of bridge-port-interface
  
- layering bridge and vsctl
  In long term, OF-config would be supported.
  I envisage something like bridge-ovsdb and bridge-ofconfig.

-- 
yamahata

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to