summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-08 13:34:09 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-09 05:17:57 -0800
commit834476474672f44d2e2d9fd7a1b913f0981116c3 (patch)
tree83deccf1a36936b11918766455c3ddc3c20cbaac /tools
parent033c8bfdb8fca37b7dccc46aaa2dda02763d9f35 (diff)
config: we don't need to modify origin PeerType name
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/bgpyang2golang.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py
index b409a562..bbb8519e 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -330,8 +330,6 @@ def visit_typedef(ctx, module):
# print(stmts.path)
name = stmts.arg
stmts.golang_name = convert_to_golang(name)
- if stmts.golang_name == 'PeerType':
- stmts.golang_name = 'PeerTypeDef'
child_map[name] = stmts
ctx.golang_typedef_map[prefix] = child_map