From ea754359906484ebaaf4c65b29e775dfd89d753f Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Tue, 27 Apr 2021 21:43:52 +0200 Subject: [PATCH] Filter Ports out by Interface Type (#12590) * Filter Ports +out by Interface Type * style fix * style fix * . * . * change code * . * move filter to main filter function * reduce to bad_iftype in settings --- html/mix-manifest.json | 2 +- misc/config_definitions.json | 3 +++ resources/lang/en/settings.php | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/html/mix-manifest.json b/html/mix-manifest.json index 095260fc57..1b100773dc 100644 --- a/html/mix-manifest.json +++ b/html/mix-manifest.json @@ -4,7 +4,7 @@ "/css/app.css": "/css/app.css?id=996b9e3da0c3ab98067e", "/js/vendor.js": "/js/vendor.js?id=54e44dd06cb8f6a3e6fe", "/js/lang/de.js": "/js/lang/de.js?id=db973f6aaff0cda764c6", - "/js/lang/en.js": "/js/lang/en.js?id=db41698ef6dc5a662096", + "/js/lang/en.js": "/js/lang/en.js?id=1b381cf5180cf72bee65", "/js/lang/fr.js": "/js/lang/fr.js?id=acd514ce666ebf45ef7b", "/js/lang/it.js": "/js/lang/it.js?id=b28a63928155eeb4e2a1", "/js/lang/ru.js": "/js/lang/ru.js?id=f6b7c078755312a0907c", diff --git a/misc/config_definitions.json b/misc/config_definitions.json index 5c566923b4..f12d37b699 100644 --- a/misc/config_definitions.json +++ b/misc/config_definitions.json @@ -703,6 +703,9 @@ }, "bad_iftype": { "type": "array", + "group": "poller", + "section": "interface_types", + "order": 0, "default": [ "voiceEncap", "voiceFXO", diff --git a/resources/lang/en/settings.php b/resources/lang/en/settings.php index 3c52116eb6..1fdfd6f7b9 100644 --- a/resources/lang/en/settings.php +++ b/resources/lang/en/settings.php @@ -63,6 +63,7 @@ return [ 'rrdtool' => 'Datastore: RRDTool', 'snmp' => 'SNMP', 'poller_modules' => 'Poller Modules', + 'interface_types' => 'Interface Type by RFC 7224', ], 'system' => [ 'cleanup' => 'Cleanup', @@ -968,6 +969,10 @@ return [ ], ], ], + 'bad_iftype' => [ + 'description' => 'Bad Interfaces', + 'help' => 'Network Interface Types which should be ignored', + ], 'ping' => [ 'description' => 'Path to ping', ],