Skip to content
Snippets Groups Projects

netio: ignore docker and veth interfaces

Merged Hahn Axel (hahn) requested to merge docker-checks into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -12,20 +12,22 @@
# 2023-09-22 v1.4 <axel.hahn@unibe.ch> fix syntax error -eq: unary operator expected
# 2024-01-10 v1.5 <axel.hahn@unibe.ch> added regex filter for include and exclude
# 2024-03-04 v1.6 <axel.hahn@unibe.ch> remove Kubernetes interfaces
# 2024-03-26 v1.7 <axel.hahn@unibe.ch> ignore docker and veth interfaces
# ======================================================================
. $( dirname $0 )/inc_pluginfunctions
export self_APPVERSION=1.6
export self_APPVERSION=1.7
# network data without non physical interfaces to be removed from /proc/net/dev
# - lo - local
# - bond - bonded interfaces
# - ppp - dialer connections
# - docker - Docker / Docker Swarm interfaces, e.g. docker0, docker_gwbridge
# - cali - Kubernetes interfaces
# - flannel - layer 3 fabric for Kubernetes
nonPhysicalInterfaces="(lo|bond.*|ppp.*|cali.*|flannel.*):"
nonPhysicalInterfaces="(lo|bond.*|cali.*|docker.*|flannel.*|ppp.*|veth.*):"
# ----------------------------------------------------------------------
# FUNCTIONS
Loading