[PATCH pve-network v6 0/2] ipam plugin for nautobot >= 2.4.14

lou.lecrivain at orange.fr lou.lecrivain at orange.fr
Mon Sep 22 11:19:38 CEST 2025


From: Lou Lecrivain <lou.lecrivain at wdz.de>

Dear maintainers,

Following last review rounds of Nautobot IPAM plugin, we concluded that
it was not possible to have it fully working as expected due to lack of IP
range support in Nautobot IPAM.

In the meantime, I was able to upstream a PR to Nautobot for
allocating IPs within a range, which was released with nautobot 2.4.14.
https://github.com/nautobot/nautobot/releases/tag/v2.4.14

This (rebased and edited) version of the Nautobot IPAM plugin includes
the necessary logic to use the new allocation scheme. Please note that
I also had to include a version check, as this is incompatible with 
previous versions of Nautobot.

BR


Lou Lecrivain (2):
  ipam: add Nautobot plugin
  ipam: add test cases for nautobot plugin

 src/PVE/API2/Network/SDN/Ipams.pm             |   1 +
 src/PVE/Network/SDN/Ipams.pm                  |   3 +
 src/PVE/Network/SDN/Ipams/Makefile            |   2 +-
 src/PVE/Network/SDN/Ipams/NautobotPlugin.pm   | 460 ++++++++++++++++++
 src/test/ipams/nautobot/expected.add_ip       |  11 +
 .../ipams/nautobot/expected.add_ip_notgateway |  11 +
 .../ipams/nautobot/expected.add_next_freeip   |  11 +
 src/test/ipams/nautobot/expected.add_subnet   |  11 +
 src/test/ipams/nautobot/expected.del_ip       |  11 +
 src/test/ipams/nautobot/expected.update_ip    |  11 +
 src/test/ipams/nautobot/ipam_config           |  24 +
 src/test/ipams/nautobot/sdn_config            |  20 +
 src/test/ipams/netbox/ipam_config             |   8 +-
 src/test/ipams/phpipam/ipam_config            |   8 +-
 14 files changed, 589 insertions(+), 3 deletions(-)
 create mode 100644 src/PVE/Network/SDN/Ipams/NautobotPlugin.pm
 create mode 100644 src/test/ipams/nautobot/expected.add_ip
 create mode 100644 src/test/ipams/nautobot/expected.add_ip_notgateway
 create mode 100644 src/test/ipams/nautobot/expected.add_next_freeip
 create mode 100644 src/test/ipams/nautobot/expected.add_subnet
 create mode 100644 src/test/ipams/nautobot/expected.del_ip
 create mode 100644 src/test/ipams/nautobot/expected.update_ip
 create mode 100644 src/test/ipams/nautobot/ipam_config
 create mode 100644 src/test/ipams/nautobot/sdn_config

-- 
2.47.3




More information about the pve-devel mailing list