{"action":"created","issue":{"url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/367","labels_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/367/labels{/name}","comments_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/367/comments","events_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/367/events","html_url":"https://github.com/Juniper/py-junos-eznc/issues/367","id":67311728,"number":367,"title":"RouteTable looses prefix-length with extensive=True","user":{"login":"brownian","id":483441,"avatar_url":"https://avatars.githubusercontent.com/u/483441?v=3","gravatar_id":"","url":"https://api.github.com/users/brownian","html_url":"https://github.com/brownian","followers_url":"https://api.github.com/users/brownian/followers","following_url":"https://api.github.com/users/brownian/following{/other_user}","gists_url":"https://api.github.com/users/brownian/gists{/gist_id}","starred_url":"https://api.github.com/users/brownian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brownian/subscriptions","organizations_url":"https://api.github.com/users/brownian/orgs","repos_url":"https://api.github.com/users/brownian/repos","events_url":"https://api.github.com/users/brownian/events{/privacy}","received_events_url":"https://api.github.com/users/brownian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-09T08:50:29Z","updated_at":"2015-04-09T09:34:35Z","closed_at":null,"body":"```\r\n>>> routes = RouteTable(dev)\r\n>>> items = routes.get('<dest>/18')\r\n>>> items.items()\r\n[('<dest>/18', [('nexthop', '<nexthop>'), ('age', 467899), ('via', 'xe-0/0/0.4002'), ('protocol', 'BGP')])]\r\n>>> \r\n>>> \r\n>>> routes = RouteTable(dev)\r\n>>> items = routes.get('<dest>/18', extensive=True)\r\n>>> items.items()\r\n[('<dest>', [('nexthop', '<nexthop>'), ('age', 467913), ('via', 'xe-0/0/0.4002'), ('protocol', 'BGP')])]\r\n```\r\n\r\nAnd there is no way to override ```extensive=True``` to ```extensive=False``` in an yaml table definition? --- should I report this as another issue, if so?"},"comment":{"url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/comments/91174826","html_url":"https://github.com/Juniper/py-junos-eznc/issues/367#issuecomment-91174826","issue_url":"https://api.github.com/repos/Juniper/py-junos-eznc/issues/367","id":91174826,"user":{"login":"vnitinv","id":767016,"avatar_url":"https://avatars.githubusercontent.com/u/767016?v=3","gravatar_id":"","url":"https://api.github.com/users/vnitinv","html_url":"https://github.com/vnitinv","followers_url":"https://api.github.com/users/vnitinv/followers","following_url":"https://api.github.com/users/vnitinv/following{/other_user}","gists_url":"https://api.github.com/users/vnitinv/gists{/gist_id}","starred_url":"https://api.github.com/users/vnitinv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnitinv/subscriptions","organizations_url":"https://api.github.com/users/vnitinv/orgs","repos_url":"https://api.github.com/users/vnitinv/repos","events_url":"https://api.github.com/users/vnitinv/events{/privacy}","received_events_url":"https://api.github.com/users/vnitinv/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T09:34:35Z","updated_at":"2015-04-09T09:34:35Z","body":"As you know PyEZ uses xml output and parse it to set value to table/view\r\nNow when we do \"show route 10.209.0.0/18 | display xml\" we get rt-destination tag as\r\n\\<rt-destination\\>10.209.0.0/18\\</rt-destination\\>\r\n\r\nwhen we use extensive \"show route 10.209.0.0/18 extensive | display xml\" we get rt-destination tag as\r\n\\<rt-destination\\>10.209.0.0\\</rt-destination\\>  (without prefix). \r\nHence you see such output from PyEZ too."}}