Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in routes with view='latest', one of the default routes gets deleted. #46

Open
jopietsch opened this issue Mar 17, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jopietsch
Copy link
Contributor

with routes view='latest'

   datacenter hostname   vrf                           prefix nexthopIps    oifs weights protocol           source      metric               timestamp
50   dual-bgp   exit01  mgmt         IPv4Network('0.0.0.0/0')         []      []     [1]                            4278198272 2020-01-24 22:28:45.696
51   dual-bgp   exit01  mgmt       IPv4Network('127.0.0.0/8')         []  [mgmt]     [1]   kernel        127.0.0.1          20 2020-01-24 22:28:45.696
52   dual-bgp   exit01  mgmt  IPv4Network('192.168.121.0/24')         []  [eth0]     [1]   kernel  192.168.121.145          20 2020-01-24 22:28:45.696

with views='all'

   datacenter hostname   vrf                           prefix       nexthopIps    oifs weights protocol           source      metric               timestamp
51   dual-bgp   exit01  mgmt         IPv4Network('0.0.0.0/0')  [192.168.121.1]  [eth0]     [1]                                    20 2020-01-24 22:28:45.696
52   dual-bgp   exit01  mgmt         IPv4Network('0.0.0.0/0')               []      []     [1]                            4278198272 2020-01-24 22:28:45.696
53   dual-bgp   exit01  mgmt       IPv4Network('127.0.0.0/8')               []  [mgmt]     [1]   kernel        127.0.0.1          20 2020-01-24 22:28:45.696
54   dual-bgp   exit01  mgmt  IPv4Network('192.168.121.0/24')               []  [eth0]     [1]   kernel  192.168.121.145          20 2020-01-24 22:28:45.696

so we don't see the default that has a metric of 20 when view='latest'. the problem is that via the keys, they are a duplicate and that one gets dropped. so maybe adding 'metric' as key?

@jopietsch jopietsch added the bug Something isn't working label Mar 18, 2020
LucaNicosia pushed a commit that referenced this issue Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant