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
Reply to
Jakub Kicinski, 2024-06-29
On Fri, 2024-06-28 at 19:12 -0700, Jakub Kicinski wrote:
On Thu, 27 Jun 2024 22:17:18 +0200 Paolo Abeni wrote:
quoted
+      -
+        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_?
quoted
+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
Thread (15 messages) 15 messages, 2 authors, last reply 2024-07-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help