aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-02-04 09:12:00 +0100
committerOndrej Fabry <ofabry@cisco.com>2020-03-16 09:10:27 +0000
commitef678a4bd175e53015d5d60f6fe36739925c5c85 (patch)
tree9e7dbd7de01be653fde29361c2e516a00070b572
parent8e50e48f4d540dfe418b28f545267e2a65ab2f34 (diff)
vppapigen: fix options representation
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ief77110160120ea0e1291cc79949a73404cdbfda (cherry picked from commit 59b6c0c86d0c3310b8d87b9f2600b6fc7682b549)
-rwxr-xr-xsrc/tools/vppapigen/vppapigen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/vppapigen/vppapigen.py b/src/tools/vppapigen/vppapigen.py
index 57a30fd3c29..7a7b68737ba 100755
--- a/src/tools/vppapigen/vppapigen.py
+++ b/src/tools/vppapigen/vppapigen.py
@@ -769,7 +769,7 @@ class VPPAPI(object):
if o.autoreply:
s[tname].append(self.autoreply_block(o.name))
elif isinstance(o, Option):
- s[tname][o[1]] = o[2]
+ s[tname][o.option] = o.value
elif type(o) is list:
for o2 in o:
if isinstance(o2, Service):