Port, Vlans doesn't get updated when changed from trunk to access port

Hi

I have experienced that when changing a port on a Cisco switch from trunk to access the vlan list associated to that port isn’t updated, instead the new access vlan is just added to the list of vlans on that interface.
Running discovery.php -h 10.0.0.1 -m vlans, show the right output but the db isn’t updated toshow the changes.
is there a way to solve this problem or could this be a bug.

/opt/librenms# ./validate.php

Component Version
LibreNMS 737865c94f9ac5f5874c71db7cbe91823601570d
DB Schema 182
PHP 7.0.15-0ubuntu0.16.04.4
MySQL 5.7.17-0ubuntu0.16.04.2
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

==========================================================

[OK] Database connection successful
[WARN] Your local git branch is not master, this will prevent automatic updates.

This may be fixed in the current master, you can try the fix from the pull request: https://github.com/librenms/librenms/pull/6423

If that does fix it then this will be available in the next stable release on the 30th of April

That certainly solved the problem :slight_smile:

Thank you so much @laf !