This repository was archived by the owner on Sep 17, 2019. It is now read-only.
This repository was archived by the owner on Sep 17, 2019. It is now read-only.
Fix get_route_to
or fix tests #238
Open
Description
The get_route_to
method is a tricky one as the protocol
argument is not thoroughly tested and might lead to differences in terms of support across different drivers. For example, a driver could support static
and bgp
while another might support only static
.
Proposed solutions:
get_route_to
only lives innapalm-base
and calls forget_route_to_static
,get_route_to_bgp
, etc... that are individual implementations in the drivers. Would be nice to have an IPv4/IPv6 flag, btw.- We ignore this issue and we just fix the tests so there is no "protocol" sent to
get_route_to
and control tests/behaviour with mocked data as described here: Test case for static routes (v4+v6) #233 (comment)
Pinging some people that might be interested on this discussion: @napalm-automation/council @manuel-domke @bewing