summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-06-30 19:15:18 +0200
committerChristian Poessinger <christian@poessinger.com>2018-06-30 19:18:35 +0200
commitf6a2a10452ed03559be07f780cb859998e4b1a7c (patch)
treeb3d8503c6128dc7afc0b88384ed0ba1577c9bc1d /scripts
parent0f19dc57ed6588c083eee8aa9aee09b92b441b08 (diff)
downloadvyatta-cfg-system-f6a2a10452ed03559be07f780cb859998e4b1a7c.tar.gz
vyatta-cfg-system-f6a2a10452ed03559be07f780cb859998e4b1a7c.zip
T719: remove warnings from SNMP ifAlias Perl script
SNMPD is executing an external PERL script when retrieving ifAlias descriptions. This is done via pass .1.3.6.1.2.1.31.1.1.1.18 /opt/vyatta/sbin/if-mib-alias ... but as VyOS 1.2 now uses Perl 5.20 some options will trigger warnings on script invocation. given is experimental at /opt/vyatta/sbin/if-mib-alias line 121. when is experimental at /opt/vyatta/sbin/if-mib-alias line 122. when is experimental at /opt/vyatta/sbin/if-mib-alias line 123. when is experimental at /opt/vyatta/sbin/if-mib-alias line 124. .1.3.6.1.2.1.31.1.1.1.18.1 string LOOPBACK Those warnings have been suppressed!
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/snmp/if-mib-alias1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/snmp/if-mib-alias b/scripts/snmp/if-mib-alias
index d17644e9..bc86f999 100755
--- a/scripts/snmp/if-mib-alias
+++ b/scripts/snmp/if-mib-alias
@@ -23,6 +23,7 @@
use strict;
use warnings;
use feature "switch";
+no warnings 'experimental::smartmatch';
# Collect interface all alias values
sub get_alias {