{"action":"created","issue":{"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/645","repository_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen","labels_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/645/comments","events_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/645/events","html_url":"https://github.com/CiscoDevNet/ydk-gen/issues/645","id":279740118,"number":645,"title":"Segmentation fault observed in Cisco_IOS_XR_ipv4_io_oper","user":{"login":"praselva","id":4676528,"avatar_url":"https://avatars1.githubusercontent.com/u/4676528?v=4","gravatar_id":"","url":"https://api.github.com/users/praselva","html_url":"https://github.com/praselva","followers_url":"https://api.github.com/users/praselva/followers","following_url":"https://api.github.com/users/praselva/following{/other_user}","gists_url":"https://api.github.com/users/praselva/gists{/gist_id}","starred_url":"https://api.github.com/users/praselva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praselva/subscriptions","organizations_url":"https://api.github.com/users/praselva/orgs","repos_url":"https://api.github.com/users/praselva/repos","events_url":"https://api.github.com/users/praselva/events{/privacy}","received_events_url":"https://api.github.com/users/praselva/received_events","type":"User","site_admin":false},"labels":[{"id":340069848,"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-06T12:46:17Z","updated_at":"2018-02-21T23:08:28Z","closed_at":null,"author_association":"NONE","body":"Issue tracker is ONLY used for reporting bugs. Please use the [YDK Community](https://communities.cisco.com/community/developer/ydk) for any support issues.\r\n\r\n## Expected Behavior\r\nWhen doing\r\ncrud = CRUDService()\r\nout = eval(ydk_oper_model + \".\" +  ydk_api)\r\nout_obj = crud.read(handler, out)\r\nthe expected output is a yak object.\r\n\r\n\r\n## Current Behavior\r\nFor the following opermodel & API, segmentation fault happens\r\n \r\nOpermodel: Cisco_IOS_XR_ipv4_io_oper     API: Ipv4Network()\r\nOpermodel: Cisco_IOS_XR_ipv6_ma_oper  API: Ipv6Network()\r\n\r\n\r\n\r\n## Steps to Reproduce\r\n\r\n\r\n\r\n\r\n## Your Script\r\n\r\n<!--- copy paste your script below -->\r\n```\r\nydk_oper_model = \"Cisco_IOS_XR_ipv6_ma_oper\"\r\nydk_api = \"Ipv6Network()\"\r\nhandler =NetconfServiceProvider(address=address,\r\n                port=830,\r\n                username=username,\r\n                password=password,\r\n                protocol=\"ssh\")\r\n \r\ncrud = CRUDService()\r\nout = eval(ydk_oper_model + \".\" +  ydk_api)\r\nout_obj = crud.read(handler, out)\r\n```\r\n\r\n## Logs\r\nEnable [logging](http://ydk.cisco.com/py/docs/guides/introduction.html#logging) and post the logs below\r\n\r\n[Ipv4Network.log](https://github.com/CiscoDevNet/ydk-gen/files/1535129/Ipv4Network.log)\r\n[Ipv6Network.log](https://github.com/CiscoDevNet/ydk-gen/files/1535130/Ipv6Network.log)\r\n\r\n\r\n\r\n<!--- copy paste your logs below -->\r\n\r\n```\r\nLogs in attached files\r\n```\r\n\r\n## System Information\r\n<!-- Please include python version, operating system and processor architecture -->\r\nOS: CentOS Linux release 7.3.1611 (Core)\r\nPython version: Python 3.6.2 (default, Nov 16 2017, 22:07:36)\r\nProcessor Architecture: Intel(R) Xeon(R) CPU E7- 2870  @ 2.40GHz\r\nYDK version: Name: ydk\r\n                       Version: 0.6.2\r\n                       Summary: YDK Python SDK\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/comments/367509487","html_url":"https://github.com/CiscoDevNet/ydk-gen/issues/645#issuecomment-367509487","issue_url":"https://api.github.com/repos/CiscoDevNet/ydk-gen/issues/645","id":367509487,"user":{"login":"abhikeshav","id":17089095,"avatar_url":"https://avatars3.githubusercontent.com/u/17089095?v=4","gravatar_id":"","url":"https://api.github.com/users/abhikeshav","html_url":"https://github.com/abhikeshav","followers_url":"https://api.github.com/users/abhikeshav/followers","following_url":"https://api.github.com/users/abhikeshav/following{/other_user}","gists_url":"https://api.github.com/users/abhikeshav/gists{/gist_id}","starred_url":"https://api.github.com/users/abhikeshav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhikeshav/subscriptions","organizations_url":"https://api.github.com/users/abhikeshav/orgs","repos_url":"https://api.github.com/users/abhikeshav/repos","events_url":"https://api.github.com/users/abhikeshav/events{/privacy}","received_events_url":"https://api.github.com/users/abhikeshav/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T23:08:28Z","updated_at":"2018-02-21T23:08:28Z","author_association":"COLLABORATOR","body":"Seeing a different issue in ydk `0.7.0`\r\n\r\n```\r\nntrol-list\r\n2018-02-21 15:00:43,819 - ydk - DEBUG - get_schema_node: Getting schema node for 'inbound'\r\nDEBUG:ydk:get_schema_node: Getting schema node for 'inbound'\r\n2018-02-21 15:00:43,819 - ydk - ERROR - Couldn't fetch child entity inbound in parent /Cisco-IOS-XR-ipv6-ma-oper:ipv6-network/nodes/node[node-name='0/RP0/CPU0']/interface-data/vrfs/vrf[vrf-name='default']/global-details/global-detail[interface-name='Loopback0']/multi-access-control-list!\r\nERROR:ydk:Couldn't fetch child entity inbound in parent /Cisco-IOS-XR-ipv6-ma-oper:ipv6-network/nodes/node[node-name='0/RP0/CPU0']/interface-data/vrfs/vrf[vrf-name='default']/global-details/global-detail[interface-name='Loopback0']/multi-access-control-list!\r\n---------------------------------------------------------------------------\r\nYPYCoreError                              Traceback (most recent call last)\r\n<ipython-input-5-23afacbc36f6> in <module>()\r\n----> 1 crud.read(ncc,o)\r\n\r\n~/p/lib/python3.6/site-packages/ydk/errors/error_handler.py in helper(self, provider, entity, *args, **kwargs)\r\n    110             err_msg = \"'{0}' and '{1}' cannot be None\".format(pname, ename)\r\n    111             raise _YPYServiceError(error_msg=err_msg)\r\n--> 112         return func(self, provider, entity, *args, **kwargs)\r\n    113     return helper\r\n\r\n~/p/lib/python3.6/site-packages/ydk/services/crud_service.py in read(self, provider, read_filter)\r\n     33     def read(self, provider, read_filter):\r\n     34         with _handle_error():\r\n---> 35             return self._crud.read(provider, read_filter)\r\n     36 \r\n     37     @_check_argument\r\n\r\n/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py in __exit__(self, type, value, traceback)\r\n     97                 value = type()\r\n     98             try:\r\n---> 99                 self.gen.throw(type, value, traceback)\r\n    100             except StopIteration as exc:\r\n    101                 # Suppress StopIteration *unless* it's the same exception that\r\n\r\n~/p/lib/python3.6/site-packages/ydk/errors/error_handler.py in handle_runtime_error()\r\n     80     finally:\r\n     81         if _exc:\r\n---> 82             _raise(_exc)\r\n     83 \r\n     84 \r\n\r\n~/p/lib/python3.6/site-packages/ydk/errors/error_handler.py in _raise(exc)\r\n     52     \"\"\"\r\n     53     if sys.version_info >= (3,3):\r\n---> 54         exec(\"raise exc from None\")\r\n     55     else:\r\n     56         raise exc\r\n\r\n~/p/lib/python3.6/site-packages/ydk/errors/error_handler.py in <module>()\r\n\r\nYPYCoreError:  Couldn't fetch child entity 'inbound' in parent /Cisco-IOS-XR-ipv6-ma-oper:ipv6-network/nodes/node[node-name='0/RP0/CPU0']/interface-data/vrfs/vrf[vrf-name='default']/global-details/global-detail[interface-name='Loopback0']/multi-access-control-list\r\n\r\n\r\n```"}}
{"actor":{"display_login":"abhikeshav"}}