diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-03-03 17:57:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-03 18:41:18 +0900 |
commit | 49a725a8999c1d012821b9e543793f95821663ef (patch) | |
tree | 9513612d7e81a52800930b39c9c29fa40f85c9f5 /tools/pyang_plugins | |
parent | 542f5ef9bb2566e00ef883a7259d83e8512e63a2 (diff) |
config: make a field name same to its type name
embedding doesn't work with toml.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r-- | tools/pyang_plugins/bgpyang2golang.py | 2 |
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) |