summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pyang_plugins')
-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 9fe8a8ee..569cc9bf 100644
--- a/tools/pyang_plugins/bgpyang2golang.py
+++ b/tools/pyang_plugins/bgpyang2golang.py
@@ -501,7 +501,7 @@ _type_translation_map = {
'boolean': 'bool',
'empty': 'bool',
'inet:ip-address': 'net.IP',
- 'inet:ip-prefix': 'net.IPNet',
+ 'inet:ip-prefix': 'string',
'inet:ipv4-address': 'net.IP',
'inet:as-number': 'uint32',
'bgp-set-community-option-type' : 'string',