.get_route_to() does not support connected/direct routes
In order to implement testing of routes with no next-hops for napalm-automation/napalm-base#157, direct or connected routes must be a supported protocol.
(Paste verbatim output from show version and haiku between quotes below)
show version and haiku
Hostname: router
Model: mx80
JUNOS Base OS boot [11.4R7.5]
JUNOS Base OS Software Suite [11.4R7.5]
JUNOS Kernel Software Suite [11.4R7.5]
JUNOS Crypto Software Suite [11.4R7.5]
JUNOS Packet Forwarding Engine Support (MX80) [11.4R7.5]
JUNOS Online Documentation [11.4R7.5]
JUNOS Routing Software Suite [11.4R7.5]
Just like mosquitoes
Bugs pepper all my source code
Keeps me off the streets
Steps to Reproduce the Issue
Attempt to call get_route_to
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Python 2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import napalm_junos,getpass
>>> password = getpass.getpass()
Password:
>>> device = napalm_junos.JunOSDriver('router', 'bewing', password)
>>> device.open()
>>> device.get_route_to('192.0.2.1', 'direct')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bewing/virtualenv/lib/python2.7/site-packages/napalm_junos/junos.py", line 964, in get_route_to
protocol=protocol
TypeError: Protocol not supported: direct.
.get_route_to() does not support connected/direct routes
In order to implement testing of routes with no next-hops for napalm-automation/napalm-base#157, direct or connected routes must be a supported protocol.
Did you follow the steps from https://github.com/napalm-automation/napalm#faq
[x] Yes [ ] No
Setup
napalm-junos version
(Paste verbatim output from
pip freeze | grep napalm-junos
between quotes below)JunOS version
(Paste verbatim output from
show version and haiku
between quotes below)Steps to Reproduce the Issue
Attempt to call get_route_to
Error Traceback
(Paste the complete traceback of the exception between quotes below)