Subject: Re: [PATCH] iproute: disallow ip rule del without parameters

From: Stephen Hemminger <[email-masked]>
Date: Thu, 1 Sep 2016 09:05:40 -0700

On Tue, 30 Aug 2016 13:51:56 +0200
Michal Kubecek <[email-masked]> wrote:

> On Mon, Aug 29, 2016 at 10:53:25AM -0700, Stephen Hemminger wrote:
> > On Wed, 24 Aug 2016 23:43:00 +0300
> > "Andrey Jr. Melnikov" <[email-masked]> wrote:
> >   
> > > Disallow run `ip rule del` without any parameter to avoid delete any first
> > > rule from table.  
> ...
> > Actually ip rule delete without arguments deletes all rules.
> > Which could be a bug or feature depending on the user.
> > I can imagine somebody is doing something like deleting all rules
> > and putting in new ones for PBR.  
> 
> We have "ip rule flush" for that, don't we?
> 
> Michal Kubecek

I went ahead and applied this, seemed better to give error than deleting
all rules.