vppapigen: fix options representation

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ief77110160120ea0e1291cc79949a73404cdbfda
This commit is contained in:
Ole Troan
2020-02-04 09:12:00 +01:00
committed by Andrew Yourtchenko
parent 13ff90fe53
commit 59b6c0c86d

View File

@ -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):