summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins/bgpyang2golang.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyang_plugins/bgpyang2golang.py')
-rw-r--r--tools/pyang_plugins/bgpyang2golang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py
index ee81c311..03b274c1 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -169,7 +169,7 @@ def emit_class_def(ctx, c, struct_name):
emit_type_name = '[]' + t.golang_name
if is_container(child):
- print >> o, ' %s' % emit_type_name
+ print >> o, ' %s\t%s' % (emit_type_name, emit_type_name)
else:
print >> o, ' %s\t%s' % (val_name_go, emit_type_name)