Hi Ben Pfaff,

Thanks for your prompt reply. I am using the following code leg to delete
the flows, Please find the attached wireshark logs for the same:

    public void deleteGroup(Group group, Node localNode2){
                WriteTransaction modification =
AricentAdapterSalServices.dataBroker.newWriteOnlyTransaction();

                InstanceIdentifier<Group> groupInstanceIdType1 =
InstanceIdentifier.create(Nodes.class)
                            .child(Node.class,
localNode2.getKey()).augmentation(FlowCapableNode.class)
                            .child(Group.class, new
GroupKey(group.getGroupId()));
                modification.delete(LogicalDatastoreType.CONFIGURATION,
groupInstanceIdType1);
                CheckedFuture<Void,TransactionCommitFailedException>
submitFuture  = modification.submit();
                Futures.addCallback(submitFuture, new
FutureCallback<Void>() {
                @Override
                public void onSuccess(final Void result) {

                    System.out.println( "Delete Group --
Committedsuccessfully ") ;
                }
                @Override
                public void onFailure(final Throwable t) {

                    if(t instanceof OptimisticLockFailedException) {

                         System.out.println( "Delete Group -- Failed
because of concurrent transaction modifying same data ") ;
                            } else {
                                System.out.println( "Delete Group -- Some
other type of TransactionCommitFailedException " + t) ;
                            }
                        }
                    });

Thanks !

On Fri, Jan 29, 2016 at 3:50 AM, Ben Pfaff <[email protected]> wrote:

> On Thu, Jan 28, 2016 at 06:47:44PM +0530, Vir Kadain wrote:
> > Hi All,
> >
> > I am using Opendaylight controller with  mininet. I create some group
> entry
> > in ovs when I am trying to delete in ovs 2.3.x then I am able to delete
> it
> > but if I tried with ovs 2.5.x . then I am not able to delete group flows,
> >
> > wireshark shows "OFPGMFC_INVALID_GROUP" in  error meaage . Even  I am
> able
> > to do with ovs 2.3.x
>
> OFPGMFC_INVALID_GROUP has a few possible meanings.  Can you show us the
> OpenFlow request that causes the error?
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to