# Re: \[PATCH net-next 1/5\] netlink: spec: add shaper YAML spec

- From: Paolo Abeni \<pabeni@redhat.com\>
- Date: 2024-07-01 10:14:39 
- List: netdev
- Page: https://ratatoskr.run/netdev/2024/07/11299433
- Thread: https://ratatoskr.run/netdev/2024/06/11299230/t.md

```text
On Fri, 2024-06-28 at 19:12 -0700, Jakub Kicinski wrote:
> On Thu, 27 Jun 2024 22:17:18 +0200 Paolo Abeni wrote:
> 
> > +      -
> > +        name: shapers
> > +        type: nest
> > +        multi-attr: true
> > +        nested-attributes: ns-info
> 
> How do shapers differ from shaping attrs in this scope? :S

the set() operation must configure multiple shapers with a single
command - to allow the 'atomic configuration changes' need for Andrew's
use-case.

Out-of-sheer ignorance on my side, the above was the most straight-
forward way to provide set() with an array of shapers.

Do you mean there are better way to achieve the goal, or "just" that
the documentation here is missing and _necessary_?

> > +operations:
> > +  list:
> > +    -
> > +      name: get
> > +      doc: |
> > +        Get / Dump information about a/all the shaper for a given device
> > +      attribute-set: net_shaper
> > +      flags: [ admin-perm ]
> 
> Any reason why get is admin-perm ?

Mostly a "better safe then sorry" approach and cargo-cult form other
recent yaml changes the hard reasons. Fine to drop it, if there is
agreement.

Side note: ack to everything else noted in your reply.

Thanks,

Paolo

```
