{"action":"opened","issue":{"url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/32","labels_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/32/comments","events_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/32/events","html_url":"https://github.com/CiscoDevNet/cosc-learning-labs/issues/32","id":79404007,"number":32,"title":"04_static_route_create - TypeError: can't use a string pattern on a bytes-like object in Python 3","user":{"login":"NathanCisco","id":7212288,"avatar_url":"https://avatars.githubusercontent.com/u/7212288?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanCisco","html_url":"https://github.com/NathanCisco","followers_url":"https://api.github.com/users/NathanCisco/followers","following_url":"https://api.github.com/users/NathanCisco/following{/other_user}","gists_url":"https://api.github.com/users/NathanCisco/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanCisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanCisco/subscriptions","organizations_url":"https://api.github.com/users/NathanCisco/orgs","repos_url":"https://api.github.com/users/NathanCisco/repos","events_url":"https://api.github.com/users/NathanCisco/events{/privacy}","received_events_url":"https://api.github.com/users/NathanCisco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T10:50:43Z","updated_at":"2015-05-22T10:50:43Z","closed_at":null,"body":"cosc authentication url: https://198.18.1.25/controller-auth\r\n...\r\nPython Library Documentation: function static_route_create in module basics.routes\r\n\r\nstatic_route_create(device_name, destination_network, next_hop_address, description=None)\r\n    Create the specified 'static route' on the specified network device.\r\n\r\ninventory_static_route()\r\nTraceback (most recent call last):\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/learning_lab/04_static_route_create.py\", line 88, in <module>\r\n    sys_exit(main())\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/learning_lab/04_static_route_create.py\", line 77, in main\r\n    device_names = inventory_static_route()\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/basics/routes.py\", line 42, in inventory_static_route\r\n    device_name=device_name)\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/basics/inventory.py\", line 305, in capability_discovery\r\n    results = etree.parse(BytesIO(response.content), parser=parser)\r\n  File \"lxml.etree.pyx\", line 3310, in lxml.etree.parse (src/lxml/lxml.etree.c:72517)\r\n  File \"parser.pxi\", line 1808, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:106174)\r\n  File \"parser.pxi\", line 1828, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:106403)\r\n  File \"parser.pxi\", line 1716, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:105194)\r\n  File \"parser.pxi\", line 1086, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:99876)\r\n  File \"parsertarget.pxi\", line 160, in lxml.etree._TargetParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:117372)\r\n  File \"parsertarget.pxi\", line 154, in lxml.etree._TargetParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:117265)\r\n  File \"lxml.etree.pyx\", line 316, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:10323)\r\n  File \"saxparser.pxi\", line 498, in lxml.etree._handleSaxData (src/lxml/lxml.etree.c:111735)\r\n  File \"parsertarget.pxi\", line 83, in lxml.etree._PythonSaxParserTarget._handleSaxData (src/lxml/lxml.etree.c:116224)\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/basics/inventory.py\", line 263, in data\r\n    parts = self.parts(capability_text)\r\n  File \"/Users/nsowatsk/git/cosc-learning-labs/src/basics/inventory.py\", line 278, in parts\r\n    match = _capability_pattern.match(entire_capability)\r\nTypeError: can't use a string pattern on a bytes-like object\r\n"}}