In general, the only way to get a flow table into an OpenFlow switch is to put one there from the controller. Sometimes there are special tools (like dpctl / ovs-dpctl) which are capable of installing table entries too, though this is switch-specific and not an OpenFlow thing. It's reasonable, however, for the controller to know that when some switch connects, it should immediately install some table.
(I still don't really understand the use case for copying a flow table, though, since the port numbers are liable to be wrong.) -- Murphy On Jul 11, 2012, at 9:10 PM, Anthony Salim wrote: > Hi Murphy, > > How bout that if the switch is a mininet switches? can i say for example add > another mininet switch and store the flow table in it? Thanks. > > Regards, > Anthony > > On Thu, Jul 12, 2012 at 12:34 AM, Murphy McCauley <[email protected]> > wrote: > I'm not sure I understand the question. If you mean you want to have one > switch install a flow in another switch, then no, because switches don't > communicate amongst themselves -- only with controllers. In most cases a > *copied* table entry wouldn't be that useful anyway since, for example, port > numbers would likely be different on the different switches. > > It is, however, easy enough to install slightly different table entries on > all your switches from the controller that all match the same traffic... > > -- Murphy > > On Jul 11, 2012, at 6:10 AM, Anthony Salim wrote: > > > Hi guys, > > > > Is there any function in openflow that can be used to duplicate (copy) flow > > table entries in the switches? Thanks. > > > > lets say if i have a flow with same source and destination, it will go > > through that switch flow table and forward the packet accordingly and also > > make a copy of flow entry in another flow table lets say another switch. > > > > Regards, > > Anthony > >
