]> git.proxmox.com Git - pve-network.git/commit
subnets/ipam : fix is_gateway
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 4 Jun 2021 11:25:00 +0000 (13:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 16:29:15 +0000 (18:29 +0200)
commit34c4c6d74fd8245d21828231f895808d8649f965
treeda19a0449efe39f01c9d0c94c2e7d1b1fd309988
parent9f1e793423722e02ffba1f48a74b0ffd0e50e004
subnets/ipam : fix is_gateway

- add lost is_gateway in subnets subnet when creating subnet
- allow reuse ip as gateway in subnet create if it's already flagged gateway in the ipamdb
- add tests
PVE/Network/SDN/Ipams/NetboxPlugin.pm
PVE/Network/SDN/Ipams/PVEPlugin.pm
PVE/Network/SDN/Ipams/PhpIpamPlugin.pm
PVE/Network/SDN/SubnetPlugin.pm
PVE/Network/SDN/Subnets.pm
test/ipams/netbox/expected.add_ip_notgateway [new file with mode: 0644]
test/ipams/phpipam/expected.add_ip_notgateway [new file with mode: 0644]
test/run_test_ipams.pl
test/run_test_subnets.pl