doc/netlink: Add delete operation to ovs_vport spec
authorDonald Hunter <donald.hunter@gmail.com>
Thu, 24 Aug 2023 14:22:21 +0000 (15:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Aug 2023 01:58:34 +0000 (18:58 -0700)
Add del operation to the spec to help with testing.

Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230824142221.71339-1-donald.hunter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ovs_vport.yaml

index ef298b0..f65ce62 100644 (file)
@@ -139,9 +139,20 @@ operations:
             - ifindex
             - options
     -
+      name: del
+      doc: Delete existing OVS vport from a data path
+      attribute-set: vport
+      fixed-header: ovs-header
+      do:
+        request:
+          attributes:
+            - dp-ifindex
+            - port-no
+            - type
+            - name
+    -
       name: get
       doc: Get / dump OVS vport configuration and state
-      value: 3
       attribute-set: vport
       fixed-header: ovs-header
       do: &vport-get-op