Skip to content
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
@dbarrosop

Description

@dbarrosop

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:

  1. get_route_to only lives in napalm-base and calls for get_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.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions