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.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/pyang_plugins/bgpyang2golang.py b/tools/pyang_plugins/bgpyang2golang.py
index 42e4e65e..ed02b451 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -528,9 +528,9 @@ _type_translation_map = {
'decimal64': 'float64',
'boolean': 'bool',
'empty': 'bool',
- 'inet:ip-address': 'net.IP',
+ 'inet:ip-address': 'string',
'inet:ip-prefix': 'string',
- 'inet:ipv4-address': 'net.IP',
+ 'inet:ipv4-address': 'string',
'inet:as-number': 'uint32',
'bgp-set-community-option-type' : 'string',
'identityref' : 'string',
@@ -570,8 +570,6 @@ def generate_header(ctx):
print _COPYRIGHT_NOTICE
print 'package config'
print ''
- print 'import "net"'
- print ''
def translate_type(key):