[ovs-discuss] Remove port mirror has problem

Ben Pfaff blp at nicira.com
Thu Jul 12 15:44:13 UTC 2012


Thank you for the correction.  I sent out a patch to fix the manpage.

On Thu, Jul 12, 2012 at 12:58:02PM +0800, Kris zhang wrote:
> Thanks, Ben. please see the manual page:
> http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-vsctl.8
> 
> it says use :
> 
> *
> remove Bridge br0 mirrors mymirror*
> 
> BTW, the command you give me is working, but a little change:
> 
> ovs-vsctl -- --id=@rec get mirror mymirror \
> 
>           -- remove Bridge br0 mirrors @rec
> 
> Thanks again,
> 
> Kris
> 
> 
> On Thu, Jul 12, 2012 at 11:56 AM, Ben Pfaff <blp at nicira.com> wrote:
> 
> > On Thu, Jul 12, 2012 at 11:39:24AM +0800, Kris zhang wrote:
> > > But when i use the following the command to remove the mirror:
> > >
> > > *
> > > remove Bridge br0 mirrors mymirror*
> > >
> > > *
> > > *
> > >
> > > I found i can not remove it. so i tried: ovs-vsctl remove Bridge br0
> > > mirrors mymirror. But it still doesn't work.
> >
> > It's true.  Only UUIDs are accepted here; names are not.
> >
> > > Next i use the ovs-vsctl list
> > > bridge to check the column mirrors, i found its value is a uuid. so i
> > tried:
> > >
> > > *ovs-vsctl remove Bridge br0 mirrors <mymirror_uuid>*
> > >
> > >
> > > the above command is ok.
> >
> > Yes.
> >
> > > Is this is known issue? if not, please also update the manual pages.
> >
> > Does the manual page say you can use that syntax?  I do not think that
> > it does.
> >
> > You can use this command instead of the one that you tried:
> >
> >         ovs-vsctl -- --id=@rec get mirrors mymirror \
> >                   -- remove Bridge br0 mirrors @rec
> >
> > or if you just have one mirror:
> >
> >         ovs-vsctl clear Bridge br0 mirrors
> >



More information about the discuss mailing list