summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-02-04 09:12:00 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-02-04 13:05:28 +0000
commit59b6c0c86d0c3310b8d87b9f2600b6fc7682b549 (patch)
treee5cb36c35bd19b7d523f118ee4d4a974d1b87448 /src
parent13ff90fe530106c881dea81a8d6d84d0cd8250f1 (diff)
vppapigen: fix options representation
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ief77110160120ea0e1291cc79949a73404cdbfda
Diffstat (limited to 'src')
-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):