phpipam icon indicating copy to clipboard operation
phpipam copied to clipboard

BGP subnet mapping is ipv4-only

Open petrus-lt opened this issue 6 years ago • 3 comments

Using the new BGP/routing menu from 1.4, it seems unable to search for IPv6 subnets:

https://github.com/phpipam/phpipam/blob/1.4/app/admin/routing/edit-bgp-mapping-search.php#L24:

$query = 'select INET_NTOA(`subnet`) as subnet,id,mask,description from `subnets` ...

petrus-lt avatar Sep 03 '19 09:09 petrus-lt

I'm having the same problem, this issue seems to have been overlooked. Is anyone working on a fix for this?

cls-02 avatar Apr 06 '21 05:04 cls-02

It still exists

ankeshanand1 avatar Apr 09 '24 10:04 ankeshanand1

The easiest workaround I can think of is comment out this line and list all IP subnets and select IPv6 subnet: https://github.com/phpipam/phpipam/blob/8ef996678cccf3e0b1ba01e24e16fb8e7dbdb0a6/app/admin/routing/edit-bgp-mapping-search.php#L24 //if(strlen($search_txt) < 2) { $Result->show("danger", _("Please enter at least 2 characters."), true); } I'll work on fixing the validation part though as this is a temporary fix

ankeshanand1 avatar Apr 09 '24 10:04 ankeshanand1