PHP 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Sep 9 2020 06:46:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.22, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.22-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
$ dpkg -l | grep php
rc libapache2-mod-php7.0 7.0.32-0ubuntu0.16.04.1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php7.2 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-php7.3 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-common 2:76+ubuntu18.04.1+deb.sury.org+9 all Common files for PHP packages
ii php-ds 1.2.9-1+ubuntu18.04.1+deb.sury.org+20191129 amd64 PHP extension providing efficient data structures for PHP 7
ii php-gettext 1.0.12-0.1 all transitional dummy package for php-php-gettext
ii php-igbinary 3.1.2+2.0.8-1+ubuntu18.04.1+deb.sury.org+1 amd64 igbinary PHP serializer
ii php-memcache 4.0.5.2+3.0.9~20170802.e702b5f9-1+ubuntu18.04.1+deb.sury.org+1 amd64 memcache extension module for PHP
ii php-memcached 3.1.4+2.2.0-1+ubuntu18.04.1+deb.sury.org+20191129 amd64 memcached extension module for PHP, uses libmemcached
ii php-msgpack 2.1.0+0.5.7-1+ubuntu18.04.1+deb.sury.org+1 amd64 PHP extension for interfacing with MessagePack
ii php-mysql 2:7.4+76+ubuntu18.04.1+deb.sury.org+9 all MySQL module for PHP [default]
ii php-pear 1:1.10.8+submodules+notgz-1+ubuntu18.04.1+deb.sury.org+1 all PEAR Base System
ii php-php-gettext 1.0.12-0.1 all read gettext MO files directly, without requiring anything other than PHP
ii php-rrd 2.0.1+1.1.3-7+ubuntu18.04.1+deb.sury.org+20191129 amd64 PHP bindings to rrd tool system
ii php-yaml 2.1.0+2.0.4+1.3.2-1+ubuntu18.04.1+deb.sury.org+1 amd64 YAML-1.1 parser and emitter for PHP
ii php-zip 2:7.4+76+ubuntu18.04.1+deb.sury.org+9 all Zip module for PHP [default]
rc php7.0-bcmath 7.0.32-0ubuntu0.16.04.1 amd64 Bcmath module for PHP
ii php7.0-common 7.0.33-30+ubuntu18.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
rc php7.0-curl 7.0.32-0ubuntu0.16.04.1 amd64 CURL module for PHP
rc php7.0-intl 7.0.32-0ubuntu0.16.04.1 amd64 Internationalisation module for PHP
rc php7.0-json 7.0.32-0ubuntu0.16.04.1 amd64 JSON module for PHP
ii php7.0-mbstring 7.0.33-30+ubuntu18.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
rc php7.0-mcrypt 7.0.32-0ubuntu0.16.04.1 amd64 libmcrypt module for PHP
rc php7.0-mysql 7.0.32-0ubuntu0.16.04.1 amd64 MySQL module for PHP
rc php7.0-opcache 7.0.32-0ubuntu0.16.04.1 amd64 Zend OpCache module for PHP
rc php7.0-readline 7.0.32-0ubuntu0.16.04.1 amd64 readline module for PHP
rc php7.0-snmp 7.0.32-0ubuntu0.16.04.1 amd64 SNMP module for PHP
ii php7.0-xml 7.0.33-30+ubuntu18.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
rc php7.0-zip 7.0.32-0ubuntu0.16.04.1 amd64 Zip module for PHP
ii php7.2 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage)
ii php7.2-bcmath 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 Bcmath module for PHP
ii php7.2-cli 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php7.2-common 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php7.2-curl 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 CURL module for PHP
ii php7.2-gd 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 GD module for PHP
ii php7.2-intl 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 Internationalisation module for PHP
ii php7.2-json 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 JSON module for PHP
ii php7.2-mbstring 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
rc php7.2-mysql 7.2.18-1+ubuntu18.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php7.2-opcache 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php7.2-phpdbg 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (PHPDBG binary)
ii php7.2-readline 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php7.2-snmp 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 SNMP module for PHP
ii php7.2-xml 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
rc php7.2-zip 7.2.18-1+ubuntu18.04.1+deb.sury.org+1 amd64 Zip module for PHP
ii php7.3 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 all server-side, HTML-embedded scripting language (metapackage)
ii php7.3-bcmath 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 Bcmath module for PHP
ii php7.3-cgi 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (CGI binary)
ii php7.3-cli 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 command-line interpreter for the PHP scripting language
ii php7.3-common 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php7.3-curl 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 CURL module for PHP
ii php7.3-gd 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 GD module for PHP
ii php7.3-intl 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 Internationalisation module for PHP
ii php7.3-json 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 JSON module for PHP
ii php7.3-mbstring 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 MBSTRING module for PHP
ii php7.3-mysql 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php7.3-opcache 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 Zend OpCache module for PHP
ii php7.3-phpdbg 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 server-side, HTML-embedded scripting language (PHPDBG binary)
ii php7.3-readline 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 readline module for PHP
ii php7.3-snmp 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 SNMP module for PHP
ii php7.3-xml 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii php7.3-zip 7.3.22-1+ubuntu18.04.1+deb.sury.org+1 amd64 Zip module for PHP
ii php7.4-common 7.4.10-1+ubuntu18.04.1+deb.sury.org+1 amd64 documentation, examples and common module for PHP
ii php7.4-mysql 7.4.10-1+ubuntu18.04.1+deb.sury.org+1 amd64 MySQL module for PHP
ii php7.4-zip 7.4.10-1+ubuntu18.04.1+deb.sury.org+1 amd64 Zip module for PHP
SUMMARY
The update-l2database.pl script does not seem to support IPv6.
STEPS TO REPRODUCE
Remove all IPv4 information from a switch, including the A record for the hostname. Run update-l2database.pl.
I'm going to close this as WONTFIX. We're in the progess of migrating update-l2database.pl to a php version which will use OSS_SNMP (and consequently will be subject to #675).
ISSUE TYPE
Bug Report
OS
Ubuntu 18.04.5 LTS
VERSION
ENVIRONMENT
SUMMARY
The update-l2database.pl script does not seem to support IPv6.
STEPS TO REPRODUCE
Remove all IPv4 information from a switch, including the A record for the hostname. Run update-l2database.pl.
IMPORTANCE
We can't remove IPv4 from our management network