On Thu, Nov 18, 2010 at 11:49:07PM +0530, sachin sharma wrote: > I am using openvswitch-1.1.0pre2.tar.gz. I am interested to assign fixed > datapath id to my switch. I found through openvswitch code that it could be > MAC > address of a local port; if local port has some MAC address, otherwise it > would > pick a random number for that. > > The problem is that in my case datapath id is always a random number. I tried > to > debug this issue. and found that pick_datapath_id() is called while assigning > this ID. But in this function when it tries to get local port from > port_array_get() then it always results NULL value. This in turn force it to > choose random value of datapath id. > > I think, local port is the interface which was created when I added datapath. > > I have examined this interface and found that it already have a MAC address. > > > can anyone help me in assigning fixed datapath id.
ovs-vsctl set bridge <mybr> other-config:datapath-id=<datapathid> Older Open vSwitch versions require <datapathid> to be exactly 12 hex digits. Newer versions require it to be exactly 16 hex digits. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org