Got it. I thought I was making an error with recompiling the code. Turns out it 
was a different problem.

Thanks


-----Original Message-----
From: Ben Pfaff [mailto:b...@ovn.org] 
Sent: Monday, March 21, 2016 1:20 PM
To: Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com>
Cc: discuss@openvswitch.org
Subject: Re: [ovs-discuss] Adding new ovs-vsctl command

This isn't really the place to do basic programming tutorials.  I suggest 
asking a coworker.

On Mon, Mar 21, 2016 at 05:38:35PM +0000, Rajasekaran, Monica wrote:
> How do I recompile ovs after every time I make a change in the source code ?
> 
> Thanks,
> Monica
> 
> 
> -----Original Message-----
> From: Ben Pfaff [mailto:b...@ovn.org]
> Sent: Monday, March 21, 2016 11:09 AM
> To: Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com>
> Cc: discuss@openvswitch.org
> Subject: Re: [ovs-discuss] Adding new ovs-vsctl command
> 
> On Mon, Mar 21, 2016 at 03:23:21PM +0000, Rajasekaran, Monica wrote:
> > Hi,
> > 
> > I am trying to add a new vsctl command. Let's say it will be invoked 
> > with "ovs-vsctl usermod",
> > 
> > I added it to struct ctl_command_syntax as follows:
> >                {"usermod", 0, 0, "", NULL, cmd_usermod, NULL, "", 
> > RW},
> > 
> > And, I defined a function cmd_usermod that just logs to file for now.
> > 
> > But, when I give the command, I still get "ovs-vsctl: unknown command 
> > 'usermod'; use -help for help"
> > 
> > Any idea if I am missing something ?
> 
> I'm not sure you're running the recompiled version.  I made a similar change 
> and it worked fine.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to