]> git.proxmox.com Git - pve-network.git/commitdiff
sdn: zone: add dhcp option
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 17 Nov 2023 11:39:42 +0000 (12:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 18 Nov 2023 14:59:50 +0000 (15:59 +0100)
Co-Authored-By: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
src/PVE/Network/SDN/Zones/SimplePlugin.pm

index 4922903acd558d98bff6dc080841445d1068f601..f30278c0ba53078bfed5d3678e9b5e3e63eaad64 100644 (file)
@@ -26,7 +26,11 @@ sub properties {
        dnszone => {
            type => 'string', format => 'dns-name',
            description => "dns domain zone  ex: mydomain.com",
-       }
+       },
+       dhcp => {
+           type => 'pve-configid',
+           description => 'ID of the DHCP server responsible for managing this range',
+       },
     };
 }
 
@@ -38,6 +42,7 @@ sub options {
        reversedns => { optional => 1 },
        dnszone => { optional => 1 },
        ipam => { optional => 1 },
+       dhcp => { optional => 1 },
     };
 }