{"action":"created","issue":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/120","labels_url":"https://api.github.com/repos/ktbyers/netmiko/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/120/comments","events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/120/events","html_url":"https://github.com/ktbyers/netmiko/issues/120","id":111967410,"number":120,"title":"Direct access to router's OS","user":{"login":"chrislrobson","id":15172225,"avatar_url":"https://avatars.githubusercontent.com/u/15172225?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislrobson","html_url":"https://github.com/chrislrobson","followers_url":"https://api.github.com/users/chrislrobson/followers","following_url":"https://api.github.com/users/chrislrobson/following{/other_user}","gists_url":"https://api.github.com/users/chrislrobson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislrobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislrobson/subscriptions","organizations_url":"https://api.github.com/users/chrislrobson/orgs","repos_url":"https://api.github.com/users/chrislrobson/repos","events_url":"https://api.github.com/users/chrislrobson/events{/privacy}","received_events_url":"https://api.github.com/users/chrislrobson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-17T15:12:07Z","updated_at":"2015-10-17T16:29:21Z","closed_at":null,"body":"Netmiko will fail when connecting directly to a router's OS (aka not the routing engine). \r\nFix by the following code snippet but needs review:\r\nline 125     \r\n      def set_base_prompt(self, pri_prompt_terminator='#',\r\n                        os_prompt_terminator=\"%\",\r\n                        alt_prompt_terminator='>', delay_factor=.5):\r\nand line 165\r\n            if prompt[-1] == os_prompt_terminator:\r\n                self.commandline_mode() \r\n"},"comment":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments/148929631","html_url":"https://github.com/ktbyers/netmiko/issues/120#issuecomment-148929631","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/120","id":148929631,"user":{"login":"chrislrobson","id":15172225,"avatar_url":"https://avatars.githubusercontent.com/u/15172225?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislrobson","html_url":"https://github.com/chrislrobson","followers_url":"https://api.github.com/users/chrislrobson/followers","following_url":"https://api.github.com/users/chrislrobson/following{/other_user}","gists_url":"https://api.github.com/users/chrislrobson/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislrobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislrobson/subscriptions","organizations_url":"https://api.github.com/users/chrislrobson/orgs","repos_url":"https://api.github.com/users/chrislrobson/repos","events_url":"https://api.github.com/users/chrislrobson/events{/privacy}","received_events_url":"https://api.github.com/users/chrislrobson/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T16:29:21Z","updated_at":"2015-10-17T16:29:21Z","body":"fyi.....  There are several platforms I've ssh'ed to were one is \npresented with the OS prompt such as...\n\nJuniper, Bay-Microsystems, old marconi's, Ericcsons and any \nsoft-router.....aka linux, freebsd, vmwork...etc\n\nOn 10/17/15 12:23 PM, Chris Robson wrote:\n>\n> The router I'm connecting (ssh'ing to, aka netmiko'ing to) is a \n> Juniper vSRX running as a VMWare guest.  (You can get a free version \n> for testing from Juniper).  My python script is running on a Fedora 22 \n> host (also a guest but on a VirtualBox VM).  aka\n>\n> Fedora 22(VB guest) <------> vSRX(VM guest)\n>\n> since vSRX is a VM, when you ssh to it, your presented with the \n> FreeBSD OS prompt not the routing engine prompt.  Aka... \"username%\" \n> and not \"username>\"  Then you have to \"cli\" to the routing engine.\n>\n> Also, the patch tests with python2.7 but I just moved to python3.5 and \n> having some problems.....working it\n>\n> l8r\n> chris\n>\n> On 10/17/15 12:10 PM, Kirk Byers wrote:\n>>\n>> @chrislrobson <https://github.com/chrislrobson> What platform were \n>> you testing on?\n>>\n>> —\n>> Reply to this email directly or view it on GitHub \n>> <https://github.com/ktbyers/netmiko/issues/120#issuecomment-148928083>.\n>>\n>\n\n"}}