Skip to content

Commit

Permalink
[route_check]: Dropped redundant code. (sonic-net#1463)
Browse files Browse the repository at this point in the history
The key used is as read from APPL-DB, hence use it as such to get the value,
to help get the interfce name, so it can be used for filtering out.
  • Loading branch information
renukamanavalan authored Feb 25, 2021
1 parent eb64ecf commit e74de6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/route_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,6 @@ def filter_out_local_interfaces(keys):

for k in keys:
e = dict(tbl.get(k)[1])
if not e:
# Prefix might have been added. So try w/o it.
e = dict(tbl.get(k.split("/"))[1])
if not e or all([not re.match(x, e['ifname']) for x in local_if_re]):
rt.append(k)

Expand Down

0 comments on commit e74de6a

Please sign in to comment.