summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins/bgpyang2golang.py
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2014-11-17 16:46:59 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-11-17 18:58:22 +0900
commit0310feb4a801ee849f450df68e72ea1bd7b3bd52 (patch)
tree58dd94e178e824a3842b4a6890a6774f4bf75486 /tools/pyang_plugins/bgpyang2golang.py
parenta2f3cb72d14ae54b85950b6cb6cb319ffcf68175 (diff)
pyang_plugin: fix bug that prints container type as list
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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 e5c9f8b8..bf648124 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -175,7 +175,7 @@ def emit_class_def(ctx, c, struct_name):
# case container
elif is_container(child):
t = ctx.golang_struct_names[val_name]
- emit_type_name = '[]'+t.golang_name
+ emit_type_name = t.golang_name
# case list
elif is_list(child):