suzieq icon indicating copy to clipboard operation
suzieq copied to clipboard

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

Open jopietsch opened this issue 4 years ago • 0 comments

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 avatar Mar 17 '20 04:03 jopietsch