Skip to content

Commit

Permalink
Skip route check for tun0 interfaces (sonic-net#1399)
Browse files Browse the repository at this point in the history
As part of dual-tor features, kernel tunnel interface (tun0) is being created. The routes over this is intended for kernel forwarding and not expected to be installed in ASIC.

Ref PR - sonic-net/sonic-swss#1615
  • Loading branch information
prsunny authored and anand-kumar-subramanian committed Mar 2, 2021
1 parent 9899a9e commit 4b361cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/route_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def filter_out_local_interfaces(keys):
:return keys filtered out of local
"""
rt = []
local_if_re = ['eth0', 'lo', 'docker0', 'Loopback\d+']
local_if_re = ['eth0', 'lo', 'docker0', 'tun0', 'Loopback\d+']

db = swsscommon.DBConnector(APPL_DB_NAME, 0)
tbl = swsscommon.Table(db, 'ROUTE_TABLE')
Expand Down

0 comments on commit 4b361cd

Please sign in to comment.