Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP Address Import #3284

Open
danopogac opened this issue Mar 17, 2021 · 7 comments
Open

IP Address Import #3284

danopogac opened this issue Mar 17, 2021 · 7 comments

Comments

@danopogac
Copy link

Import IP Addresses from xsl file after uload file and click on Preview throw error for each hostname Unable to locate the subnet in the specified VRF. VRF module is disabled because we don't use VRFs at all. Subnet for import is defined correctly without VRF or VRF showing value None.

phpIPAM version
1.5 and 1.4 latest. Tested both versions

  • OS RHEL 8
  • PHP version 7.4 64bit
  • Webserver Apache
  • Database MariaDB 10.5

Steps To Reproduce
Click Administration -> Import / Export
Select Dataset IPadresses from drop down menu
Click import
Click Browse / Drag and drop
Select file to import
Click Preview

image001 (002)

@Graham9999
Copy link

Is there a work around for this issue? I'm experiencing the same issue and have a lot of importing to do.

@avkolbasenko
Copy link
Contributor

avkolbasenko commented Dec 2, 2021

Confirm, i have some problem. ver.~1.5 devel from GIT

This is happened because this networks created in MySQL with default vrfid NULL(i don't know why). Other networks created with vrfid 0.
After changing this field to 0 in phpmyadmin, all ip imported successfully:
New entry, will be added.

@avkolbasenko
Copy link
Contributor

Partially Solved.. It is necessary to understand, why these networks are created with vrfid NULL

@jondah
Copy link

jondah commented Feb 16, 2022

I had same issue and has come to the conclusion that subnets created in GUI got null as vrfID and subnets created from Excel import got 0 as id.

@ivoruetsche
Copy link

Confirm, i have some problem. ver.~1.5 devel from GIT

This is happened because this networks created in MySQL with default vrfid NULL(i don't know why). Other networks created with vrfid 0. After changing this field to 0 in phpmyadmin, all ip imported successfully: New entry, will be added.

UPDATE subnets SET vrfId = 0 WHERE vrfId is NULL;

@qvdm
Copy link

qvdm commented Feb 7, 2023

The above workaround only works for me when importing a single IP address. Subsequent entries still fail with the "Unable to locate the subnet in the specified VRF" error message.

@Graham9999
Copy link

Graham9999 commented Dec 1, 2023

This will fix this issue, make sure you click the box

Check the box Search for matching subnet in all VRFs.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants