Skip to content

Commit

Permalink
Merge pull request #13 from infrasonar/tap_exclusion
Browse files Browse the repository at this point in the history
tap interface exclusion
  • Loading branch information
joente authored Jan 9, 2025
2 parents fd94b22 + 41b041c commit 656abfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/check/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,39 @@
'HCOutBroadcastPkts',
)

# Interfaces where the type is one ot the following will be excluded unless
# "include all".
ExcludedIfTypes = (
'ieee80211',
'l3ipvlan',
'l2vlan',
)

# Interfaces where the description starts with one of these words will be
# excluded unless "include all".
ExcludedIfDescStartsWith = (
'veth',
'nu',
'vnet',
'virbr',
)

# Interfaces where the description contains one of these words will be
# excluded unless "include all".
ExcludedIfDescContains = (
'vif',
'stackport',
'internal-data',
'cplane'
)

# Interface names with a match will be excluded unless "include all".
ExcludeIfMatch = (
re.compile('^docker[0-9a-f]{7}$'),
re.compile(r'^tap[0-9]+\.[0-9]+$'),
)

# Address and prefixes matching these prefixes will be absolutely filtered
# Address and prefixes matching these prefixes will filtered unless include all
ReservedAddresses = (
'00:00:01:00:00:01', # Problematic XEROX CORPORATION MACs
'00:00:01', # Cisco ASA virtual MACs
Expand Down
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version string. Examples:
# '3.0.0'
# '3.0.0-alpha9'
__version__ = '3.1.2-alpha0'
__version__ = '3.1.2-alpha2'

0 comments on commit 656abfb

Please sign in to comment.