diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-06-30 19:15:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-06-30 19:18:35 +0200 |
commit | f6a2a10452ed03559be07f780cb859998e4b1a7c (patch) | |
tree | b3d8503c6128dc7afc0b88384ed0ba1577c9bc1d | |
parent | 0f19dc57ed6588c083eee8aa9aee09b92b441b08 (diff) | |
download | vyatta-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!
-rwxr-xr-x | scripts/snmp/if-mib-alias | 1 |
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 { |