You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the search feature, to search for IP addresses (e.g. /search?search=5.57.80.72),
the green labels for the IP addresses go to the wrong VLAN interface.
It seems to be using the id of the IP address in the ipv4address table instead
of the VLAN interface id, so:
Where the IP is 5.57.80.72, it goes to /interfaces/vlan/edit/72 (should be 88)
Clicking IP 5.57.82.72 goes to interfaces/vlan/edit/583 (should be 1083)
mysql> select * FROM ipv4address WHERE address = '5.57.80.72';
+----+--------+------------+------------+------------+
| id | vlanid | address | created_at | updated_at |
+----+--------+------------+------------+------------+
| 72 | 1 | 5.57.80.72 | NULL | NULL |
+----+--------+------------+------------+------------+
1 row in set (0.00 sec)
mysql> select * FROM ipv4address WHERE address = '5.57.82.72';
+-----+--------+------------+------------+------------+
| id | vlanid | address | created_at | updated_at |
+-----+--------+------------+------------+------------+
| 583 | 1 | 5.57.82.72 | NULL | NULL |
+-----+--------+------------+------------+------------+
1 row in set (0.00 sec)
mysql> select id,ipv4addressid,ipv6addressid,virtualinterfaceid,vlanid from vlaninterface where ipv4addressid = '72';
+----+---------------+---------------+--------------------+--------+
| id | ipv4addressid | ipv6addressid | virtualinterfaceid | vlanid |
+----+---------------+---------------+--------------------+--------+
| 88 | 72 | 62 | 90 | 1 |
+----+---------------+---------------+--------------------+--------+
1 row in set (0.01 sec)
mysql> select id,ipv4addressid,ipv6addressid,virtualinterfaceid,vlanid from vlaninterface where ipv4addressid = '583';
+------+---------------+---------------+--------------------+--------+
| id | ipv4addressid | ipv6addressid | virtualinterfaceid | vlanid |
+------+---------------+---------------+--------------------+--------+
| 1083 | 583 | 452 | 680 | 1 |
+------+---------------+---------------+--------------------+--------+
1 row in set (0.00 sec)
ISSUE TYPE
Bug Report
VERSION
SUMMARY
When using the search feature, to search for IP addresses (e.g.
/search?search=5.57.80.72
),the green labels for the IP addresses go to the wrong VLAN interface.
It seems to be using the id of the IP address in the
ipv4address
table insteadof the VLAN interface id, so:
Where the IP is
5.57.80.72,
it goes to/interfaces/vlan/edit/72
(should be 88)Clicking IP
5.57.82.72
goes tointerfaces/vlan/edit/583
(should be 1083)Seems to be in
resources/views/search/additional/ip.foil.php
I've had a look through the code to see if it was something simple, couldn't figure out how to get the correct vlan interface id.
Also it's using
$vli->ipv6enabled
for both IPv4 and IPv6 links.STEPS TO REPRODUCE
The text was updated successfully, but these errors were encountered: