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

API cannot add nested Subnets in a existing Subnet #35

Open
joda666 opened this issue Jun 24, 2023 · 0 comments
Open

API cannot add nested Subnets in a existing Subnet #35

joda666 opened this issue Jun 24, 2023 · 0 comments

Comments

@joda666
Copy link

joda666 commented Jun 24, 2023

ansible@server4:> curl --header 'token: ...' -X POST "https://host/phpipam/api/api/subnets/?subnet=10.10.3.0&mask=24&sectionId=3&masterSubnetId=8&allowRequests=1&pingSubnet=1&discoverSubnet=1&description=10.10.3.0/24" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 77 100 77 0 0 2054 0 --:--:-- --:--:-- --:--:-- 2081
{
"code": 400,
"success": false,
"message": "Invalid request key id2",
"time": 0.009
}
ansible@server4:
> curl --header 'token: ...' -X POST "https://host/phpipam/api/api/subnets/?subnet=10.10.3.0&mask=24&sectionId=3&masterSubnetId=0&allowRequests=1&pingSubnet=1&discoverSubnet=1&description=10.10.3.0/24" | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 140 100 140 0 0 3507 0 --:--:-- --:--:-- --:--:-- 3589
{
"code": 409,
"success": false,
"message": "Subnet 10.10.3.0/24 overlaps with 10.10.0.0/19 (Virtuelle Maschinen) in section IPv4",
"time": 0.008
}
ansible@server4:~>

The overlapping network is the MasterSubnetID 8.

Please correct it. Cannot import many nested subnets.

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

No branches or pull requests

1 participant