We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7815ab commit b192bf1Copy full SHA for b192bf1
tools/testing/selftests/net/openvswitch/ovs-dpctl.py
@@ -863,6 +863,19 @@ def parse(self, actstr):
863
self["attrs"].append(["OVS_ACTION_ATTR_USERSPACE", uact])
864
parsed = True
865
866
+ elif parse_starts_block(actstr, "trunc(", False):
867
+ parencount += 1
868
+ actstr, val = parse_extract_field(
869
+ actstr,
870
+ "trunc(",
871
+ r"([0-9]+)",
872
+ int,
873
+ False,
874
+ None,
875
+ )
876
+ self["attrs"].append(["OVS_ACTION_ATTR_TRUNC", val])
877
+ parsed = True
878
+
879
actstr = actstr[strspn(actstr, ", ") :]
880
while parencount > 0:
881
parencount -= 1
0 commit comments