diff --git a/sdk/python/ydk/providers/_decoder.py b/sdk/python/ydk/providers/_decoder.py index ed5c1202e..e405f7709 100644 --- a/sdk/python/ydk/providers/_decoder.py +++ b/sdk/python/ydk/providers/_decoder.py @@ -105,7 +105,7 @@ def _to_real_union_type_helper(self, rt, member, entity): return rt[0].text elif contained_member.ptype == 'long' and rt[0].text is not None and rt[0].text.isdigit(): return long(rt[0].text) - elif contained_member.ptype == 'int' and rt[0].text is not None and rt[0].isidigit(): + elif contained_member.ptype == 'int' and rt[0].text is not None and rt[0].text.isdigit(): return int(rt[0].text) elif contained_member.ptype == 'Decimal64' and rt[0].text is not None: try: diff --git a/yang/ydktest/ydktest-sanity@2015-11-17.yang b/yang/ydktest/ydktest-sanity@2015-11-17.yang index 93d0bc9a4..461179835 100644 --- a/yang/ydktest/ydktest-sanity@2015-11-17.yang +++ b/yang/ydktest/ydktest-sanity@2015-11-17.yang @@ -284,7 +284,7 @@ module ydktest-sanity { leaf enum-value { description "this is enum type value"; - type Ydk-Enum-test; + type Ydk-Enum-test; } leaf identity-ref-value { diff --git a/yang/ydktest/ydktest-union@2015-11-17.yang b/yang/ydktest/ydktest-union@2015-11-17.yang deleted file mode 100644 index 2a9649045..000000000 --- a/yang/ydktest/ydktest-union@2015-11-17.yang +++ /dev/null @@ -1,86 +0,0 @@ -module ydktest-union { - - /*** NAMESPACE / PREFIX DEFINITION ***/ - - namespace "http://cisco.com/ns/yang/ydktest-union"; - - - prefix "ydkut"; - - /*** LINKAGE (IMPORTS / INCLUDES) ***/ - - //import ietf-inet-types { prefix "inet"; } - - //import Cisco-IOS-XR-types { prefix "xr"; } - - - - organization "Cisco Systems, Inc."; - - contact - "Cisco Systems, Inc. - Customer Service - - Postal: 170 West Tasman Drive - San Jose, CA 95134 - - Tel: +1 800 553-NETS - - E-mail: cs-yang@cisco.com"; - - description - "This module contains a collection of YANG definitions - for unions - - - Copyright (c) 2013-2014 by Cisco Systems, Inc. - All rights reserved."; - - revision "2015-11-17" { - description - "Initial revision."; - } - - - - typedef Ydk-Enum-test { - type enumeration { - enum not-set { - value 0; - description "Not Set"; - } - enum none { - value 1; - description "None"; - } - enum local { - value 2; - description "Local"; - } - enum remote { - value 3; - description "Remote"; - } - } - description "YDK Enum test"; - } - -container built-in-t { - - description "config for built-in types"; - - - leaf younion { - type union { - type Ydk-Enum-test; - type uint32 { - range "0..63"; - } - } - - } -} -} - - -